forked from yoghi/routeros-ansible-role
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (45 loc) · 1.11 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
# write me
language: python
dist: trusty
sudo: required
env:
global:
- ROUTEROS_VERSION=6.43.4
# matrix:
# - USE_NETWORK=true
# - USE_NETWORK=false
matrix:
allow_failures:
- os: osx
python: 2.7
- os: osx
python: 3.3
- os: linux
python: 3.3
include:
- os: linux
python: 2.7
- os: linux
python: 3.3
- os: osx
python: 2.7
- os: osx
python: 3.3
before_install:
- tests/travis.install.sh
install:
- pip install -r tests/requirements.txt
before_script:
- tests/run_server.sh
script:
# Check the role/playbook's syntax.
# - ansible-playbook -i tests/inventory tests/test.yml --syntax-check
- ansible-playbook -i tests/inventory tests/routeros.yml --syntax-check
# install
- ANSIBLE_CONFIG=tests/ansible.cfg ansible-playbook -i tests/inventory tests/routeros.yml --tags install -vvvv
# shutdown
- ANSIBLE_CONFIG=tests/ansible.cfg ansible-playbook -i tests/inventory.secure tests/routeros.yml --tags shutdown -vvvv
# lint
- ansible-lint tests/routeros.yml || true
after_script:
- killall qemu-system-x86_64 && false