-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
66 lines (52 loc) · 3.15 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
61
62
63
64
65
66
---
language: bash
sudo: true
services:
- docker
before_install:
- docker info
- docker version
jobs:
include:
# Stage of Syntax check
# =====================
- stage: Syntax check
script:
- echo "==> Syntax Check on Ansible 2.4 ..."
- docker run --rm -it -v $PWD:/srv chusiang/ansible:2.4 /bin/sh -c "cd /srv && make init && make syntax_check"
- stage: Syntax check
script:
- echo "==> Syntax Check on Ansible 2.5 ..."
- docker run --rm -it -v $PWD:/srv chusiang/ansible:2.5 /bin/sh -c "cd /srv && make init && make syntax_check"
# Stage of Lint check
# ===================
- stage: Lint check
script:
- echo "==> Lint Check on Ansible 2.4 ..."
- docker run --rm -it -v $PWD:/srv chusiang/ansible:2.4 /bin/sh -c "cd /srv && make lint_check"
- stage: Lint check
script:
- echo "==> Lint Check on Ansible 2.5 ..."
- docker run --rm -it -v $PWD:/srv chusiang/ansible:2.5 /bin/sh -c "cd /srv && make lint_check"
# Stage of Build
# ==============
- stage: Build
script:
- echo "==> Build on Ubuntu 16.04 ..."
- docker build -f tests/Dockerfile.ubuntu16.04 -t testlink:ubuntu16.04
. | tee tests/output.ubuntu16.04.log
- echo "==> Run tase case on Ubuntu 16.04 ..."
- grep '<title>Login</title>' tests/output.ubuntu16.04.log
- stage: Build
script:
- echo "==> Build on Debian 8 ..."
- docker build -f tests/Dockerfile.debian8 -t testlink:debian8
. | tee tests/output.debian8.log
- echo "==> Run tase case on Debian 8 ..."
- grep '<title>Login</title>' tests/output.debian8.log
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
slack:
secure: "fTwQKXiluTXqiKd+FBOWclIkTZrIOvEb4O5XKA5wFOums2NTPABEtxFZ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