forked from nginx-proxy/acme-companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.33 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
dist: trusty
sudo: required
language: bash
addons:
hosts:
- le1.wtf
- le2.wtf
- le3.wtf
env:
global:
- IMAGE=jrcs/letsencrypt-nginx-proxy-companion
- NGINX_CONTAINER_NAME=nginx-proxy
- DOCKER_GEN_CONTAINER_NAME=nginx-proxy-gen
- TEST_DOMAINS=le1.wtf,le2.wtf,le3.wtf
matrix:
- SETUP=2containers
- SETUP=3containers
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.21.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
- test/setup/setup-nginx-proxy.sh
- test/setup/setup-boulder.sh
- docker pull nginx:alpine
script:
- official-images/test/run.sh "$IMAGE"
- test/run.sh "$IMAGE"
after_failure:
- docker logs $NGINX_CONTAINER_NAME
- docker logs docker_api
- docker logs certs_single
- docker logs certs_san
- docker logs symlinks
- docker logs boulder
- if [[ $SETUP = "3containers" ]]; then docker logs $DOCKER_GEN_CONTAINER_NAME; fi