Skip to content

Commit

Permalink
Use a separate CI job per stack
Browse files Browse the repository at this point in the history
Run the tests in a separate CI job per test suite and stack. Testing on
all stacks in a single job exceeds Travis time limits.
  • Loading branch information
cjolowicz committed Nov 24, 2019
1 parent 17bea38 commit 494cc76
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ before_script:
- bundle exec hatchet ci:setup

script:
- docker build --pull --tag travis-build-cedar-14 --file $(pwd)/builds/cedar-14.Dockerfile .
- docker run --rm -e "STACK=cedar-14" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-cedar-14 bash $TESTFOLDER
- docker build --pull --tag travis-build-heroku-16 --file $(pwd)/builds/heroku-16.Dockerfile .
- docker run --rm -e "STACK=heroku-16" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-heroku-16 bash $TESTFOLDER
- docker build --pull --tag travis-build-heroku-18 --file $(pwd)/builds/heroku-18.Dockerfile .
- docker run --rm -e "STACK=heroku-18" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-heroku-18 bash $TESTFOLDER
- docker build --pull --tag travis-build-$STACK --file $(pwd)/builds/$STACK.Dockerfile .
- docker run --rm -e "STACK=$STACK" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-$STACK bash $TESTFOLDER

jobs:
include:
Expand All @@ -27,12 +23,24 @@ jobs:
script: "bundle exec rspec"
env:
matrix:
- TESTFOLDER=test/run-deps
- TESTFOLDER=test/run-deps USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- TESTFOLDER=test/run-versions
- TESTFOLDER=test/run-versions USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- TESTFOLDER=test/run-features
- TESTFOLDER=test/run-features USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- STACK=cedar-14 TESTFOLDER=test/run-deps
- STACK=cedar-14 TESTFOLDER=test/run-deps USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- STACK=cedar-14 TESTFOLDER=test/run-versions
- STACK=cedar-14 TESTFOLDER=test/run-versions USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- STACK=cedar-14 TESTFOLDER=test/run-features
- STACK=cedar-14 TESTFOLDER=test/run-features USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- STACK=heroku-16 TESTFOLDER=test/run-deps
- STACK=heroku-16 TESTFOLDER=test/run-deps USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- STACK=heroku-16 TESTFOLDER=test/run-versions
- STACK=heroku-16 TESTFOLDER=test/run-versions USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- STACK=heroku-16 TESTFOLDER=test/run-features
- STACK=heroku-16 TESTFOLDER=test/run-features USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- STACK=heroku-18 TESTFOLDER=test/run-deps
- STACK=heroku-18 TESTFOLDER=test/run-deps USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- STACK=heroku-18 TESTFOLDER=test/run-versions
- STACK=heroku-18 TESTFOLDER=test/run-versions USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
- STACK=heroku-18 TESTFOLDER=test/run-features
- STACK=heroku-18 TESTFOLDER=test/run-features USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
global:
- HATCHET_RETRIES=3
- IS_RUNNING_ON_CI=true
Expand Down

0 comments on commit 494cc76

Please sign in to comment.