forked from OpenConext/OpenConext-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (50 loc) · 2.2 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
sudo: required
language:
- generic
python:
- "3.4"
cache: pip
services:
- docker
addons:
apt:
packages:
- docker-ce
before_install:
- sudo apt-get -y update
- sudo apt-get -y install python3 python3-pip python3-yaml python3-dev
- python3 -V
- pip3 -V
- sudo pip3 install jinja2
install:
- ./scripts/syntax-check
- sudo docker build --rm -t surfnet/centos7-openconext -f tests/Dockerfile.centos-7 .
script:
- sudo /bin/bash ./tests/travis-build.sh
after_failure:
- sudo docker exec -t ansible-test yum install -y net-tools
- sudo docker exec -t ansible-test netstat -apn
- sudo docker exec -t ansible-test systemctl status -l haproxy
- sudo docker exec -t ansible-test systemctl status -l httpd
- sudo docker exec -t ansible-test systemctl status teams.service
- sudo docker exec -t ansible-test systemctl status -l influxdb
- sudo docker exec -t ansible-test tail -500 /var/log/messages
- sudo docker exec -t ansible-test cat /var/log/teams/teams.log
- sudo docker exec -t ansible-test cat /var/log/manage/manage.log
- sudo docker exec -t ansible-test cat /var/log/oidcng/oidcng.log
- sudo docker exec -t ansible-test cat /var/log/oidc-playground/oidc-playground.log
- sudo docker exec -t ansible-test cat /opt/manage/application.yml
- sudo docker exec -t ansible-test ls -ltr /var/log
- sudo docker exec -t ansible-test cat /var/log/voot/voot.log
- sudo docker exec -t ansible-test cat /var/log/attribute-aggregation/attribute-aggregation.log
- sudo docker exec -t ansible-test cat /var/log/pdp/pdp.log
- sudo docker exec -t ansible-test cat /ansible/environments-external/travis/inventory
- sudo docker exec -t ansible-test cat /ansible/environments-external/travis/group_vars/travis.yml
- sudo docker exec -t ansible-test ls -al /ansible/environments-external/travis/group_vars/
- sudo docker exec -t ansible-test cat /var/log/pdp/pdp.log
- sudo docker exec -t ansible-test env TERM=xterm tail -500 /var/log/messages
after_script:
- sudo docker stop ansible-test
env:
global:
secure: J6dAXIuIpVL07lW55baMRJsn8Pg4fiCAIEk3bWWQRlWQLL4Lmt9RHvS2iEXCcxME+ExAhZ2PhFTw8eNSGZ2VE5K1Ok1kiFLxDOd4ODRK+pOYfm+A2/HP6ehkSkltIDLrcOvFA8BivUJJ8tEz7DozChWBDayaOA5fzu5jYaBlhRU=