-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_test_runner.travis.yml
83 lines (73 loc) · 2.42 KB
/
docker_test_runner.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
79
80
81
82
83
---
# Select a project name. This is just used for Docker images.
project_name: DTR - Docker Test Runner
# The amount of threads to use.
# Can be overridden by the command line.
threads: 4
# Set log level.
# Valid: CRITICAL, DEBUG, ERROR, INFO, NOTSET, WARNING
# Can be overridden by the command line.
log_level: INFO
# Completely disable logging.
# Can be overridden by the command line.
disable_logging: False
# Build arguments (referenced also in the Dockerfiles)
docker_image_build_args:
ansible_role: timorunge.docker_test_runner
ansible_version: 2.7.9
# Path to the directory containing the Dockerfile(s)
# `__PATH__` is the directory where `docker_test_runner.py` is stored.
# docker_test_runner will automatically replace `__PATH__` with the
# current working directory.
docker_image_path: __PATH__/docker
# Images names for the build context of the Dockerfile(s)
# Images must be stored in the `docker_image_path` folder.
# Images must be named in the following format: Dockerfile_`image_name`.
docker_images:
- CentOS_7
- Debian_9
- Debian_10
- Ubuntu_16_04
- Ubuntu_17_10
- Ubuntu_18_04
- Ubuntu_18_10
# Remove intermediate containers after a successful build.
# Default value is `True`
docker_remove_images: True
# Environment variables to set inside the container.
# Each environment will run in a separate container.
# You have the possiblity to skip container runs based on an environment.
# Simply use the option `skip_images` as a list inside the environment itself.
docker_container_environments:
env_1:
injected_dict: { "foo": "bar" }
injected_list: [ "foo", "bar" ]
injected_variable: "foo_bar"
override_variable: "FOO_BAR"
env_2:
injected_dict: { "alice": "bob" }
injected_list: [ "alice", "bob" ]
injected_variable: "alice_bob"
override_variable: "ALICE_BOB"
skip_images:
- Debian_10
- Ubuntu_18_10
env_3:
injected_dict: { "x": "y" }
injected_list: [ "x", "y" ]
injected_variable: "x_y"
override_variable: "X_Y"
# Configure volumes mounted inside the container.
# `__PATH__` is the directory where `docker_test_runner.py` is stored.
# docker_test_runner will automatically replace `__PATH__` with the
# current working directory.
docker_container_volumes:
"__PATH__/ansible":
bind: /etc/ansible/roles/timorunge.docker_test_runner
mode: ro
"__PATH__/ansible/tests":
bind: /ansible
mode: rw
"__PATH__/docker":
bind: /docker
mode: ro