forked from ryanprior/gh-board
-
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.
Move integration test into individual stage and allow failure for it. Related to #45
- Loading branch information
Showing
5 changed files
with
36 additions
and
12 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 |
---|---|---|
|
@@ -5,26 +5,37 @@ cache: | |
directories: | ||
- "node_modules" | ||
|
||
.disable_global: &disable_global | ||
after_success: false | ||
after_failure: false | ||
deploy: false | ||
|
||
.integration: &integration | ||
<<: *disable_global | ||
stage: integration | ||
# Needed for Firefox | ||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- sleep 3 # give xvfb some time to start | ||
script: script/run-integration-test.sh | ||
|
||
# env forces jobs to be created from the top level settings | ||
env: | ||
jobs: | ||
include: | ||
- stage: moban | ||
- <<: *disable_global | ||
stage: moban | ||
language: python | ||
python: 3.6 | ||
cache: pip | ||
before_install: false | ||
install: pip install moban | ||
before_script: false | ||
script: .ci/check_moban.sh | ||
after_success: false | ||
deploy: false | ||
|
||
# Needed for Firefox | ||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- sleep 3 # give xvfb some time to start | ||
- *integration | ||
allow_failures: | ||
- *integration | ||
|
||
before_install: | ||
- npm install --no-save --no-optional --only=dev [email protected] | ||
|
@@ -39,6 +50,12 @@ script: | |
- script/build.sh | ||
- npm run test | ||
|
||
after_success: | ||
- codecov | ||
|
||
after_failure: | ||
- codecov | ||
|
||
notifications: | ||
email: false | ||
webhooks: https://www.travisbuddy.com/ | ||
|
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 |
---|---|---|
|
@@ -103,5 +103,10 @@ | |
}, | ||
"engines": { | ||
"npm": "~5.8.0" | ||
}, | ||
"ava": { | ||
"files": [ | ||
"test/integration/**.js" | ||
] | ||
} | ||
} |
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,5 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
# Set the flag `--race` to kill all tasks when a task finished with zero. | ||
$(npm bin)/run-p --race "start-selenium" "serve" "build-and-test" |
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
File renamed without changes.