|
4 | 4 | # Note: `language: generic` was failing in OSX so in that case you can use language: c |
5 | 5 | language: generic |
6 | 6 |
|
| 7 | +sudo: required |
| 8 | + |
| 9 | +os: linux |
| 10 | +dist: trusty |
| 11 | + |
| 12 | +services: |
| 13 | + - docker |
| 14 | + |
7 | 15 | # Omit running tests on temporal branches, |
8 | 16 | # i.e. branches with names that start with "tmp" |
9 | 17 | branches: |
|
14 | 22 | global: |
15 | 23 | - TEST_SLEEPS="0.7" |
16 | 24 | - ADDED_TEST_SLEEP="6.5" |
| 25 | + - DOCKER_VERSION="stable" |
| 26 | + - DOCKER_PUSH=true |
| 27 | + - DOCKER_PUSH_LATEST=true |
17 | 28 |
|
18 | | -matrix: |
| 29 | +jobs: |
19 | 30 | include: |
20 | | - # Linux with docker:stable compose:stable |
21 | | - # Use DOCKER_PUSH_LATEST=false to debug |
22 | | - - os: linux |
23 | | - language: generic |
24 | | - sudo: required |
25 | | - dist: trusty |
26 | | - services: |
27 | | - - docker |
28 | | - env: |
29 | | - - DOCKER_VERSION="stable" |
30 | | - DOCKER_PUSH=true |
31 | | - DOCKER_PUSH_LATEST=true |
32 | | - |
33 | | -before_install: |
34 | | - - travis_retry ./test/before_install_setup |
35 | | - - travis_retry ./test/before_install_build |
36 | | - |
37 | | -install: |
38 | | - - ./test/install |
39 | | - |
40 | | -script: |
41 | | - - ./test/script_start |
42 | | - - travis_retry ./test/script_scenario_basic |
43 | | - - travis_retry ./test/script_scenario_restart |
44 | | - - travis_retry ./test/script_scenario_node_dies |
45 | | - - travis_retry ./test/script_scenario_make |
46 | | - - travis_retry ./test/script_scenario_compose_N_N |
47 | | - |
48 | | -# cleanup though doesn't seem to be necessary in Travis infra |
49 | | -after_script: |
50 | | - - ./test/after_script |
51 | | - |
52 | | -after_success: |
53 | | - - ./test/script_end |
| 31 | + - stage: Integration and Unit Tests |
| 32 | + env: test=scenario_basic__restart |
| 33 | + script: |
| 34 | + - travis_retry ./test/before_install_build |
| 35 | + - travis_retry ./test/script_scenario_basic |
| 36 | + - travis_retry ./test/script_scenario_restart |
| 37 | + |
| 38 | + - env: test=scenario_node_dies |
| 39 | + script: |
| 40 | + - travis_retry ./test/before_install_build |
| 41 | + - travis_retry ./test/script_scenario_node_dies |
| 42 | + |
| 43 | + - env: test=scenario_make |
| 44 | + script: |
| 45 | + - travis_retry ./test/before_install_build |
| 46 | + - travis_retry ./test/script_scenario_make |
| 47 | + |
| 48 | + - env: test=scenario_compose_N_N |
| 49 | + script: |
| 50 | + - travis_retry ./test/before_install_build |
| 51 | + - travis_retry ./test/script_scenario_compose_N_N |
| 52 | + |
| 53 | + - stage: Push Image (only with a tag) |
| 54 | + script: |
| 55 | + - travis_retry ./test/before_install_build |
| 56 | + - ./test/script_push |
0 commit comments