forked from testcontainers/testcontainers-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (54 loc) · 1.77 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
language: java
jdk:
- oraclejdk8
sudo: required
services:
- docker
before_install:
- sudo apt-get update -qq
- sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew install docker-engine
- env
# Pre-fetch docker images - seems to need to be done before docker env vars are set
- docker pull redis:3.0.2
- docker pull rabbitmq:3.5.3
- docker pull mongo:3.1.5
- docker pull alpine:3.2
- docker pull mysql:latest
- docker pull mysql:5.5.43
- docker pull mysql:5.6
- docker pull mysql:5.5
- docker pull postgres:latest
- docker pull selenium/standalone-chrome-debug:2.52.0
- docker pull selenium/standalone-firefox-debug:2.52.0
- docker pull richnorth/vnc-recorder:latest
- docker pull nginx:1.9.4
- docker pull dduportal/docker-compose:1.6.0
- docker pull richnorth/ambassador:latest
# Update env vars required by testcontainers
- export DOCKER_HOST=tcp://127.0.0.1:2375
- export DOCKER_TLS_VERIFY=0
- env
script:
- mvn -B test
# Run Docker-in-Docker tests
- |
DOCKER_HOST=unix:///var/run/docker.sock DOCKER_TLS_VERIFY= docker run --rm \
-v "$HOME/.m2":/root/.m2/ \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":"$(pwd)" \
-w "$(pwd)" \
openjdk:8-jre \
./mvnw -B -pl core test -Dtest=*GenericContainerRuleTest
# Run Docker-in-Docker tests inside Alpine
- |
DOCKER_HOST=unix:///var/run/docker.sock DOCKER_TLS_VERIFY= docker run --rm \
-v "$HOME/.m2":/root/.m2/ \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":"$(pwd)" \
-w "$(pwd)" \
kiview/openjdk-alpine-bash:8u111 \
./mvnw -B -pl core test -Dtest=*GenericContainerRuleTest
- mvn -B test -f shade-test/pom.xml
cache:
directories:
- '$HOME/.m2/repository'