-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
37 lines (29 loc) · 828 Bytes
/
.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
---
language: python
env:
- IMAGE=ubuntu TAG=xenial
dist: trusty
sudo: required
cache: pip
before_install:
- docker version
- docker pull $IMAGE:$TAG
- docker run --name test -di $IMAGE:$TAG /bin/sh
- docker exec test apt-get update
- docker exec test apt-get install -y python ca-certificates
install:
- pip install ansible
- ansible --version
- printf '[defaults]\nroles_path=../' | tee ansible.cfg
- pip install ansible-lint
- ansible-lint --version
before_script:
- ansible-galaxy install uchida.docker
- ansible-galaxy install uchida.nvidia-driver
script:
- ansible-playbook -i localhost, --syntax-check tests/test.yml
- ansible-lint tests/test.yml
- ansible-playbook -i test, tests/test.yml
notifications:
email: false
webhooks: https://galaxy.ansible.com/api/v1/notifications/