forked from enolfc/ansible-role-caso
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (42 loc) · 1.02 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
---
# Travis template for an EGI-styled role
language: python
python:
- '2.7'
sudo: required
services:
- docker
env:
global:
- md_ignore: R1 # Which markdownlint rules to ignore
matrix:
- SCENARIO='default'
before_install:
install:
- pip install -r requirements.txt # The packages necessary for running the tests.
before_script:
- > # Lint all the markdown files
for file in `find . -maxdepth 2 -name "*.md"` ; do
markdownlint --ignore $md_ignore $file ;
done
script:
- molecule lint -s $SCENARIO
- molecule dependency -s $SCENARIO
- molecule syntax -s $SCENARIO
- molecule create -s $SCENARIO
- molecule converge -s $SCENARIO
- molecule idempotence -s $SCENARIO
- molecule verify -s $SCENARIO
- cd $TRAVIS_BUILD_DIR
after_success:
after_failure:
before_deploy:
deploy:
after_deploy:
after_script:
# Add your notifications here.
# Use travis encrypt to add api tokens.
notifications:
# slack:
# secure:
webhooks: "https://galaxy.ansible.com/api/v1/notifications/"