-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
37 lines (31 loc) · 1.01 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
---
language: bash
sudo: true
dist: xenial
# Doc: https://docs.travis-ci.com/user/customizing-the-build#Build-Matrix
#env:
# - ANSIBLE_VERSION=latest
branches:
only:
- Edge
before_install:
- sudo apt-get update -qq
- mkdir /opt/plexguide
- mkdir /var/plexguide
- touch /var/plexguide/pg.log
install:
# Install Ansible.
- sudo apt-get remove ansible
- sudo apt-add-repository --remove ppa:ansible/ansible -y && sudo add-apt-repository ppa:ansible/ansible-2.5 -y && sudo apt install ansible -y
- sudo apt-get update -y
- sudo apt-get install ansible 2.5.5 -y
- sudo apt-mark hold ansible
- sudo apt-get update -y
script:
# Check the role/playbook's syntax.
- sudo pwd
- mv /home/travis/build/Admin9705/PlexGuide.com-The-Awesome-Plex-Server/* /opt/plexguide/
- sudo bash /opt/plexguide/roles/baseline/scripts/gen.sh
- sudo ansible-playbook -i /opt/plexguide/pg.yml --tags couchpotato --syntax-check
### Sources
# https://tasdikrahman.me/2017/04/06/Testing-your-ansible-roles-using-travis-CI/