Skip to content

Commit

Permalink
skip tests on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed May 4, 2021
1 parent 6bff692 commit d4c8a24
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
###############################################################################################################
# DEPRECATED
# Previously we used travis-ci for all builds, but now use circlci
# Code is retained mostly for reference and will likely need updates in needed again in future
###############################################################################################################

language: node_js
node_js:
- "12"
Expand Down Expand Up @@ -43,6 +49,8 @@ before_script:
# see https://docs.travis-ci.com/user/build-matrix/#job-uniqueness-and-duplicate-jobs
# and https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027
_test_defaults: &_test_defaults
if: (branch = master OR branch = production) AND type = push
# Skip tests on PRs (currently handled by circleci)
script:
- echo "group=$CI_GROUP browser=$CI_BROWSER"
- export TZ=UTC
Expand All @@ -59,13 +67,13 @@ _predeploy_defaults: &_predeploy_defaults
- export FIREBASE_TOKEN=$(if [ "$TRAVIS_BRANCH" == "production" ]; then echo "$FIREBASE_PRODUCTION_TOKEN"; else echo "$FIREBASE_STAGING_TOKEN"; fi)
# Jobs run in parallel, so split chrome and firefox tests running each across 2 machines.
# CI_NODE var just ensures job env unique (otherwise won't run), others are passed to default script

jobs:
include:
# Test - Run 4 test stages in parallel
# TODO - possibly create a single build before test and use for tests and deploy
# (might be tricky: https://docs.travis-ci.com/user/build-stages/#data-persistence-between-stages-and-jobs)
- stage: Test
if: (branch = master OR branch = production) AND type = push
env:
- CI_GROUP=2x-chrome
- CI_BROWSER=chrome
Expand Down

0 comments on commit d4c8a24

Please sign in to comment.