-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
69 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
sudo: required | ||
|
||
dist: trusty | ||
|
||
notifications: | ||
email: false | ||
|
||
before_install: | ||
- if [ $TRAVIS_OS_NAME == "linux" ]; then | ||
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0; | ||
sh -e /etc/init.d/xvfb start; | ||
sleep 3; | ||
fi | ||
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | ||
- echo "deb http://download.mono-project.com/repo/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/mono-official.list | ||
- sudo apt-get update | ||
- sudo apt-get install mono-complete mono-devel | ||
- wget -O os.deb http://oscript.io/downloads/latest/onescript-engine_1.0.18_all.deb | ||
- sudo dpkg -i *.deb; sudo apt install -f | ||
- sudo oscript /usr/share/oscript/lib/opm/src/opm.os install opm | ||
|
||
install: | ||
- sudo oscript /usr/share/oscript/lib/opm/src/opm.os install 1testrunner | ||
- sudo oscript /usr/share/oscript/lib/opm/src/opm.os install 1bdd | ||
- sudo oscript /usr/share/oscript/lib/opm/src/opm.os install | ||
|
||
env: | ||
global: | ||
- CHANNEL=dev | ||
|
||
cache: | ||
directories: | ||
- '$HOME/.m2/repository' | ||
- '$HOME/.sonar/cache' | ||
jobs: | ||
include: | ||
#- stage: Тестирование | ||
# script: oscript /usr/share/oscript/lib/opm/src/opm.os test | ||
- stage: Сборка и публикация github & hub.oscript.io | ||
script: skip | ||
before_deploy: | ||
- oscript /usr/share/oscript/lib/opm/src/opm.os build ./ | ||
deploy: | ||
- provider: releases | ||
api_key: "$GITHUB_OAUTH_TOKEN" | ||
file_glob: true | ||
file: v8storage*.ospx | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
tags: true | ||
- provider: script | ||
skip_cleanup: true | ||
script: oscript /usr/share/oscript/lib/opm/src/opm.os push --token $GITHUB_OAUTH_TOKEN --channel dev --file ./v8storage-*.ospx; | ||
on: | ||
branch: develop | ||
- provider: script | ||
skip_cleanup: true | ||
script: oscript /usr/share/oscript/lib/opm/src/opm.os push --token $GITHUB_OAUTH_TOKEN --channel stable --file ./v8storage-*.ospx; | ||
on: | ||
branch: master | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters