This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 332
/
.travis.yml
78 lines (64 loc) · 2.17 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Even though we run everything inside docker,
# Travis requires us to pick a language else it will pick Ruby by default.
# Let's choose a lightweight base image then we provide our own build tools.
# Note: `language: generic` was failing in OSX so in that case you can use language: c
# UPDATE: Switching to python as we want to run Zalenium tests from the host
language: python
python:
- "3.6"
sudo: required
os: linux
dist: xenial
services:
- docker
branches:
except:
- latest
env:
global:
- TEST_SLEEPS="0.7"
- ADDED_TEST_SLEEP="6.5"
- DOCKER_VERSION="stable"
jobs:
allow_failures:
- env: test=scenario_make
include:
- stage: Docker build (re-use in stages)
env: step=build_push
script:
- travis_retry ./test/before_install_build
- stage: Integration and Unit Tests
env: test=scenario_basic__restart
script:
- travis_retry ./test/before_install_pull
- travis_retry ./test/script_scenario_basic
- travis_retry ./test/script_scenario_restart
- env: test=scenario_arbitrary_uid
script:
- travis_retry ./test/before_install_pull
- travis_retry ./test/script_scenario_arbitrary_uid
- env: test=scenario_node_dies
script:
- travis_retry ./test/before_install_pull
- travis_retry ./test/script_scenario_node_dies
- env: test=scenario_compose_N_N
script:
- travis_retry ./test/before_install_pull
- travis_retry ./test/script_scenario_compose_N_N
- env: test=Zalenium_Latest
script:
- gem install bitballoon || true
- travis_retry ./test/before_install_pull
- travis_retry ./test/script_scenario_zalenium
- stage: Bump versions
if: branch = master AND sender != elgalubot AND tag IS blank AND type != pull_request
script:
- travis_retry ./test/install_hub_cli
- travis_retry ./test/before_install_pull
- ./ci_cd/deploy.sh bump
- stage: Push Image & Release
if: tag =~ ^\d+\.\d+\.\d+-p\d+$ AND type != pull_request
script:
- travis_retry ./test/install_hub_cli
- travis_retry ./test/before_install_pull
- ./ci_cd/deploy.sh release