mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 16:50:18 +01:00
Remove container_id from env:
This commit is contained in:
parent
a4746557a4
commit
3a993606b2
1 changed files with 5 additions and 8 deletions
13
.travis.yml
13
.travis.yml
|
@ -1,26 +1,22 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- distribution: centos
|
- distribution: centos # Linux distribution
|
||||||
version: 6
|
version: 6 # Distribution version
|
||||||
init: /sbin/init
|
init: /sbin/init # Path to init executable (differs for SysVInit/Systemd)
|
||||||
run_opts: ""
|
run_opts: "" # Additional options for running the Docker container
|
||||||
container_id: $(mktemp)
|
|
||||||
- distribution: centos
|
- distribution: centos
|
||||||
version: 7
|
version: 7
|
||||||
init: /usr/lib/systemd/systemd
|
init: /usr/lib/systemd/systemd
|
||||||
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
|
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
|
||||||
container_id: $(mktemp)
|
|
||||||
- distribution: ubuntu
|
- distribution: ubuntu
|
||||||
version: 14.04
|
version: 14.04
|
||||||
init: /sbin/init
|
init: /sbin/init
|
||||||
run_opts: ""
|
run_opts: ""
|
||||||
container_id: $(mktemp)
|
|
||||||
- distribution: ubuntu
|
- distribution: ubuntu
|
||||||
version: 12.04
|
version: 12.04
|
||||||
init: /sbin/init
|
init: /sbin/init
|
||||||
run_opts: ""
|
run_opts: ""
|
||||||
container_id: $(mktemp)
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
@ -37,6 +33,7 @@ script:
|
||||||
# Run test playbook
|
# Run test playbook
|
||||||
#
|
#
|
||||||
|
|
||||||
|
- container_id=$(mktemp)
|
||||||
# Run container in detached state
|
# Run container in detached state
|
||||||
- sudo docker run --detach --volume="${PWD}":/etc/ansible/roles/role_under_test:ro ${run_opts} ${distribution}-${version}:ansible "${init}" > "${container_id}"
|
- sudo docker run --detach --volume="${PWD}":/etc/ansible/roles/role_under_test:ro ${run_opts} ${distribution}-${version}:ansible "${init}" > "${container_id}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue