use pushd/popd to change to ansible dir
[noc.git] / .travis.yml
1 ---
2 sudo: no
3 language: python
4 addons:
5   apt:
6     packages:
7       - graphviz
8       - ikiwiki
9       - imagemagick
10       - libimage-magick-perl
11       - libtext-markdown-discount-perl
12       - libtext-typography-perl
13
14 install:
15   - pip install ansible
16   - pip install ansible-lint
17   - ansible --version
18   - ansible-lint --version
19
20 script:
21   - pushd ./ansible
22   - ansible-lint _lint_roles.yml
23   - popd
24   - make -C doc
25
26 deploy:
27   provider: pages
28   skip-cleanup: true
29   local-dir: doc/dest
30   fqdn: noc.realraum.at
31   github-token: $GITHUB_TOKEN  # Set as a secure variable
32   keep-history: true
33   on:
34     branch: master