-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (31 loc) · 1.22 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
---
before_install:
- "curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
- "sudo add-apt-repository \"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable\""
- "sudo apt-get update"
- "sudo apt-get -y install docker-ce"
branches:
only:
- "master"
env:
global:
- "IMAGE=irap/docker-debian-ansible:stretch"
matrix:
- "NTH_SUPPORTED_ANSIBLE_VERSION=1"
- "NTH_SUPPORTED_ANSIBLE_VERSION=2"
- "NTH_SUPPORTED_ANSIBLE_VERSION=3"
- "NTH_SUPPORTED_ANSIBLE_VERSION=4"
language: "python"
notifications:
email: false
python:
- "2.7"
script:
- "wget -O ${PWD}/run.sh https://raw.githubusercontent.com/pari-/docker-debian-ansible/master/run.sh"
- "wget -O ${PWD}/extract_ansible_version.sh https://raw.githubusercontent.com/pari-/docker-debian-ansible/master/extract_ansible_version.sh"
- "wget -O ${PWD}/Dockerfile https://raw.githubusercontent.com/pari-/docker-debian-ansible/master/debian/stretch/Dockerfile"
- "chmod +x ${PWD}/run.sh"
- "chmod +x ${PWD}/extract_ansible_version.sh"
- 'export ANSIBLE_VERSION=$(./extract_ansible_version.sh Dockerfile ${NTH_SUPPORTED_ANSIBLE_VERSION}) && ${PWD}/run.sh'
services: "docker"
sudo: "required"