forked from nginx-proxy/acme-companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (40 loc) · 1.34 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
dist: trusty
sudo: required
language: bash
addons:
hosts:
- www.example1.com
- example1.com
- example2.wtf
- boulder
env:
global:
- IMAGE=jrcs/letsencrypt-nginx-proxy-companion
- NGINX_CONTAINER_NAME=nginx-proxy
- DOCKER_GEN_CONTAINER_NAME=nginx-proxy-gen
- LETSENCRYPT_CONTAINER_NAME=nginx-proxy-le
matrix:
- SETUP=2containers TEST_DOMAINS=www.example1.com
- SETUP=3containers TEST_DOMAINS=www.example1.com
- SETUP=2containers TEST_DOMAINS="www.example1.com,example1.com,example2.wtf"
- SETUP=3containers TEST_DOMAINS="www.example1.com,example1.com,example2.wtf"
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > docker-compose.temp
- chmod +x docker-compose.temp
- sudo mv docker-compose.temp /usr/local/bin/docker-compose
install:
- docker build -t "$IMAGE" .
- docker inspect "$IMAGE"
- docker run --rm "$IMAGE" simp_le --version
- docker run --rm "$IMAGE" simp_le -v --test
- docker images
before_script:
- git clone https://github.com/docker-library/official-images.git official-images
- tests/setup-boulder.sh
- tests/setup-nginx-proxy.sh $SETUP
script:
- official-images/test/run.sh "$IMAGE"
- tests/test.sh $SETUP
after_failure:
- tests/after-failure.sh $SETUP