forked from robhinds/robhinds.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
28 lines (21 loc) · 901 Bytes
/
.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
language: minimal
services:
- docker
env:
global:
- CONTMETA_html2x="donnellans/html2x" Dir_html2x="${TRAVIS_BUILD_DIR}/html2x" CONTLOCAL_html2x="test-html2x"
- CONTMETA_logo="donnellans/logo" Dir_logo="${TRAVIS_BUILD_DIR}/logo" CONTLOCAL_logo="test-logo"
before_install:
- sudo apt-get update && sudo apt-get install -y libseccomp2
- docker pull debian:stable-slim
- docker build -f "${Dir_html2x}/Dockerfile" -t ${CONTMETA_html2x} ${Dir_html2x}
- docker build -f "${Dir_logo}/Dockerfile" -t ${CONTMETA_logo} ${Dir_logo}
script:
- docker run --name "${CONTLOCAL_html2x}" ${CONTMETA_html2x}
- docker run --name "${CONTLOCAL_logo}" -v"${Dir_logo}":/data ${CONTMETA_logo}
after_error:
- docker logs ${CONTLOCAL_html2x}
- docker logs ${CONTLOCAL_logo}
after_failure:
- docker logs ${CONTLOCAL_html2x}
- docker logs ${CONTLOCAL_logo}