forked from alvistack/ansible-role-jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (22 loc) · 826 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
---
dist: xenial
language: python
env:
matrix:
- MOLECULE_OPTIONS="-s centos-7"
- MOLECULE_OPTIONS="-s suse-15"
- MOLECULE_OPTIONS="-s ubuntu-16.04"
- MOLECULE_OPTIONS="-s ubuntu-18.04"
before_install:
- sudo apt-get -y purge lxc-* lxd-* && sudo apt-get -y autoremove
- sudo snap install lxd && sudo lxd init --preseed < .travis.lxd.yml
- sudo apt-get -y purge python-openssl && sudo apt-get -y autoremove
- sudo -H pip install --upgrade --requirement requirements.txt
install:
- export ROLE=$(echo $TRAVIS_REPO_SLUG | sed 's/^.*\/ansible-role-/\//g')
- mkdir -p $HOME/.ansible/roles
- ln -s $TRAVIS_BUILD_DIR $HOME/.ansible/roles/$ROLE
script:
- travis_wait 120 sudo ./scripts/run-tests.sh $MOLECULE_OPTIONS
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/