File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
matrix :
23
23
fast_finish : true
24
+
25
+ jobs :
26
+ # build docker image
24
27
include :
25
- - rvm : ruby-head
26
- env : CMD="docker-compose -f $TRAVIS_BUILD_DIR/docker-compose.yml build"
28
+ - env : CMD="docker-compose -f $TRAVIS_BUILD_DIR/docker-compose.yml build" DOCKER="true"
29
+ # we do not need any setup
30
+ before_install : skip
31
+ install : skip
32
+ before_script : skip
27
33
before_install :
28
34
- " echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
29
35
- rake --version
@@ -42,7 +48,8 @@ before_script:
42
48
- git diff --exit-code db/schema.rb
43
49
script :
44
50
- echo "${CMD}"
45
- - bash -c "${CMD}"
51
+ # we need travis_wait because the Docker build job can take longer than 10 minutes
52
+ - if [[ "${DOCKER}" == "true" ]]; then echo "Starting Docker build job"; travis_wait 40 "${CMD}"; else bash -c "${CMD}"; fi
46
53
47
54
notifications :
48
55
irc : " irc.freenode.org#msfnotify"
You can’t perform that action at this time.
0 commit comments