-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
25 lines (18 loc) · 1.13 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
---
language: python
python: "2.7"
# Use the new container infrastructure
services: docker
install:
- docker run -d --name target -v $PWD:/flexget-daemon --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro debian:jessie /sbin/init
- docker exec target sh -c "apt-get update && apt-get install python-pip python-dev libffi-dev libssl-dev sudo curl lsof -y && pip install -U setuptools && pip install ansible markupsafe"
script:
- docker exec target ansible-playbook /flexget-daemon/tests/test.yml -i /flexget-daemon/tests/inventory --syntax-check
- docker exec target ansible-playbook /flexget-daemon/tests/test.yml -i /flexget-daemon/tests/inventory --connection=local --sudo
- docker exec target pgrep flexget
- docker exec target ansible-playbook /flexget-daemon/tests/test.yml -i /flexget-daemon/tests/inventory --connection=local --sudo
# not working at the moment as the docker container doesnt seem to want to start up any ports. needs fixing.
# - docker exec target curl -ILfsv 127.0.0.1:3539/api/
# - docker exec target curl -ILfsv 127.0.0.1:3539/ui/
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/