forked from ome/prod-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
37 lines (33 loc) · 981 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
sudo: required
language: python
services:
- docker
install:
- pip install ome-ansible-molecule-dependencies
- pip install jmespath
script:
# If PLAYBOOK is not defined assume that directory has a full
# molecule.yml configuration file, otherwise use the default
- >
if [ -n "$PLAYBOOK" ]; then
mv molecule-syntaxcheck.yml $DIRECTORY/molecule.yml;
cd $DIRECTORY;
mv $PLAYBOOK playbook.yml;
else
cd $DIRECTORY;
fi
- molecule test;
# molecule-syntaxcheck.yml this doesn't run ansible-lint)
- >
if [ -n "$PLAYBOOK" ]; then
ansible-lint playbook.yml;
fi
env:
- DIRECTORY="." PLAYBOOK=nightshade-webclients.yml
- DIRECTORY="." PLAYBOOK=ome-demoserver.yml
- DIRECTORY="." PLAYBOOK=ome-dundeeomero.yml
- DIRECTORY=omero/training-server PLAYBOOK=
- DIRECTORY=bootstrap PLAYBOOK=
- DIRECTORY=web-proxy PLAYBOOK=
- DIRECTORY=www PLAYBOOK=
- DIRECTORY=k8s/postgres PLAYBOOK=