-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
45 lines (37 loc) · 1.04 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
# write me
language: python
dist: bionic
sudo: required
env:
global:
- ROUTEROS_VERSION=6.45.8
# 6.43.4 6.45.8
# matrix:
# - USE_NETWORK=true
# - USE_NETWORK=false
matrix:
include:
- os: linux
python: 2.7
- os: linux
python: 3.6
# - os: osx
# python: 3.6
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 --key-file tests/developer.key --tags install -vvvv
# shutdown
- ANSIBLE_CONFIG=tests/ansible.cfg ansible-playbook -i tests/inventory.secure tests/routeros.yml --key-file tests/developer.key --tags shutdown -vvvv
# lint
- ansible-lint tests/routeros.yml || true
after_script:
- killall qemu-system-x86_64 && false