Skip to content

Commit cc7bc48

Browse files
committed
Use a separate CI job per stack
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.
1 parent 7a79987 commit cc7bc48

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.travis.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@ before_script:
99
- bundle exec hatchet ci:setup
1010

1111
script:
12-
- docker build --pull --tag travis-build-cedar-14 --file $(pwd)/builds/cedar-14.Dockerfile .
13-
- docker run --rm -e "STACK=cedar-14" travis-build-cedar-14 bash $TESTFOLDER
14-
- docker build --pull --tag travis-build-heroku-16 --file $(pwd)/builds/heroku-16.Dockerfile .
15-
- docker run --rm -e "STACK=heroku-16" travis-build-heroku-16 bash $TESTFOLDER
16-
- docker build --pull --tag travis-build-heroku-18 --file $(pwd)/builds/heroku-18.Dockerfile .
17-
- docker run --rm -e "STACK=heroku-18" travis-build-heroku-18 bash $TESTFOLDER
12+
- docker build --pull --tag travis-build-$STACK --file $(pwd)/builds/$STACK.Dockerfile .
13+
- docker run --rm -e "STACK=$STACK" travis-build-$STACK bash $TESTFOLDER
1814

1915
jobs:
2016
include:
@@ -27,9 +23,15 @@ jobs:
2723
script: "bundle exec rspec"
2824
env:
2925
matrix:
30-
- TESTFOLDER=test/run-deps
31-
- TESTFOLDER=test/run-versions
32-
- TESTFOLDER=test/run-features
26+
- STACK=cedar-14 TESTFOLDER=test/run-deps
27+
- STACK=cedar-14 TESTFOLDER=test/run-versions
28+
- STACK=cedar-14 TESTFOLDER=test/run-features
29+
- STACK=heroku-16 TESTFOLDER=test/run-deps
30+
- STACK=heroku-16 TESTFOLDER=test/run-versions
31+
- STACK=heroku-16 TESTFOLDER=test/run-features
32+
- STACK=heroku-18 TESTFOLDER=test/run-deps
33+
- STACK=heroku-18 TESTFOLDER=test/run-versions
34+
- STACK=heroku-18 TESTFOLDER=test/run-features
3335
global:
3436
- HATCHET_RETRIES=3
3537
- IS_RUNNING_ON_CI=true

0 commit comments

Comments
 (0)