Skip to content

Commit

Permalink
Build Process: Skip regression tests in some cases (pull #1067)
Browse files Browse the repository at this point in the history
travis will now check to make sure an example file (under the
examples/ directory) or test file (under the test/ directory)
has been edited before running AVA regression tests.
  • Loading branch information
Valerie Young authored and mcking65 committed Jul 5, 2019
1 parent eab169c commit c241f63
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,19 @@ jobs:

- stage: Test
name: AVA Regression Tests
before_install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '(test/|examples/)'
then
echo "Examples files were not updated, not running example regression tests."
exit
fi
script: ava -c 1 test/tests
env: TEST_WAIT_TIME=1000
- stage: Test
name: Regression Tests Coverage Report
script: node test/util/report.js
env: ALLOW_FAILURE=true

- stage: Deploy
if: branch = master AND type != pull_request
script: skip
Expand Down

0 comments on commit c241f63

Please sign in to comment.