-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit ce61825.
- Loading branch information
Showing
1 changed file
with
68 additions
and
24 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 |
---|---|---|
@@ -1,28 +1,72 @@ | ||
dist: xenial | ||
sudo: required | ||
|
||
env: | ||
global: | ||
# include $HOME/.local/bin for `aws` | ||
- PATH=$HOME/.local/bin:$PATH | ||
services: | ||
- xvfb | ||
|
||
language: node_js | ||
node_js: "stable" | ||
|
||
addons: | ||
chrome: stable | ||
|
||
before_install: | ||
- pyenv global 3.7.1 | ||
- pip install -U pip | ||
- pip install awscli | ||
- mkdir -p ~/$TRAVIS_BUILD_NUMBER | ||
- aws s3 sync s3://travis-build-stages-shared-storage-test/$TRAVIS_BUILD_NUMBER ~/$TRAVIS_BUILD_NUMBER | ||
|
||
jobs: | ||
include: | ||
- stage: setup files | ||
script: echo one | tee > ~/$TRAVIS_BUILD_NUMBER/one | ||
- stage: setup files | ||
script: echo two | tee > ~/$TRAVIS_BUILD_NUMBER/two | ||
- stage: use shared files | ||
script: | ||
- cat ~/$TRAVIS_BUILD_NUMBER/* | ||
after_success: | ||
- aws s3 rm --recursive s3://travis-build-stages-shared-storage-test/$TRAVIS_BUILD_NUMBER # clean up after ourselves | ||
|
||
after_success: | ||
- aws s3 sync ~/$TRAVIS_BUILD_NUMBER s3://travis-build-stages-shared-storage-test/$TRAVIS_BUILD_NUMBER | ||
- sudo apt-get clean | ||
- sudo apt-get update | ||
- sudo apt-get install dpkg | ||
- sudo apt-get install -y xvfb | ||
- stty cols 80 | ||
- sudo apt-get install nodejs-legacy | ||
- npm install -g grunt-cli | ||
- npm install grunt-contrib-qunit --save-dev | ||
- npm install grunt --save-dev | ||
|
||
# Build | ||
install: | ||
- ./tools/install-tarantool.sh | ||
- ./tools/install-clickhouse.sh | ||
- ./control-install.sh | ||
#&>install.log | ||
# - ./tools/send-to-chunk-io.sh | ||
- source $HOME/.cargo/env | ||
- npm install --save-dev testcafe | ||
- go version | ||
- dmd --version | ||
- rustc -V | ||
- ./build.sh | ||
|
||
before_script: | ||
- "export DISPLAY=:99.0" | ||
- fluxbox >/dev/null 2>&1 & | ||
- "cp -R ./qa/onto/* ./ontology 2>/dev/null || :" | ||
- ./control-start.sh | ||
- sleep 180 | ||
|
||
script: | ||
- travis_wait 3 grunt test --stack --verbose | ||
- travis_wait 6 testcafe chrome qa/testcafe/testLogin.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testPerson.js --screenshots screens --screenshots-on-fails screens --speed 0.7 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testLanguage.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testComment.js --screenshots screens --screenshots-on-fails screens --speed 0.5 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testSearch.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testCreatingNetInterface.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testDeleteAndRecovery.js --screenshots screens --screenshots-on-fails screens --speed 0.7 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testJournal.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testRights.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testSearchRangeOfDates.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
# - testcafe chrome qa/testcafe/testVersionedDocument.js | ||
- travis_wait 6 testcafe chrome qa/testcafe/testSimpleNet.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testSimpleNet2.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testSimpleNet3.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testSimpleNetLowPriority.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testControls.js --screenshots screens --screenshots-on-fails screens --speed 0.8 | ||
# - testcafe chrome qa/testcafe/testDrafts.js | ||
- travis_wait 10 testcafe chrome qa/testcafe/testDropDown.js --screenshots screens --screenshots-on-fails screens --speed 0.7 | ||
- travis_wait 6 testcafe chrome qa/testcafe/testAttributiveSearch.js --screenshots screens --screenshots-on-fails screens --speed 0.7 | ||
|
||
after_script: | ||
- ./control-stop.sh | ||
|
||
after_failure: | ||
- ./control-stop.sh | ||
- ./tools/send-to-chunk-io.sh |