forked from testcontainers/testcontainers-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (54 loc) · 2.16 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
58
59
60
61
62
63
64
language: java
jdk:
- oraclejdk8
env:
global:
- secure: "lw8tahEBcjos2c5QMMoeE19AKZDDU+WoEg7bumZJ+wuLErBEwlJENYU1t1oW834s1s7wgJ1kgt3jQgO6AWxR9wkFgZC+ZMPK0y/92T4MRsmmrMJFzUiu77UGS9MBj/Hu8M7aBzFNtLf0w3JrN2IsVI1xsX2z8PkK6L/G8C/Gzac="
- # ^^ OSSRH_JIRA_USERNAME
- secure: "p8rkrCcHH5/EM7CKiPKQZCn1Lhzh7a+drGCHFrzHqWsZCapEXIgmqM0SYMnievaIBI+8IljdSkkW/BNfmIxW3fYDckLj91eEslLEhlIKDb91NtklDpr96o7on7wGF/VvpiEzIahKgp+LVsun/G1v3NU0T/RPs9QJoMmnQi4K+8I="
- # ^^ OSSRH_JIRA_PASSWORD
- secure: "CWGSIr/ig2rIWSJqnDtmrK+XcUayl80ydh+fbzwi0v4hFsbbcNzm4SXFR2+HBGTBlWpWapvJoyG2iii2RHbgxVwYSyG6fEBrxtQV1oD8B/JAJoc/VJgvCsNnO54WRACqEPgV8fUX7MfKThA4hpXL3jnhM2A8J7wM969H8e4jNHk="
- # ^^ GPG_KEY_NAME
- secure: "n2RjM3CIvtqMGMXYxjMOXjXB2R7k2lbZ2aV3fcQ0uSlrFqbzyRcTB/oa+Sft3ayUzU5S/qYjCPnNbb7P49vk1K3q5z2A9RVofFk9H90JPBz4cuuLcsuW7apcDPohDNuk47QAccsL0K+KA2AjdiQ/cIe81LWJykV+ogDI7DVXBDY="
- # ^^ GPG_PASSPHRASE
sudo: required
services:
- docker
cache:
directories:
- '$HOME/.m2'
install:
- echo "MAVEN_OPTS='-XX:+TieredCompilation -XX:TieredStopAtLevel=1'" > ~/.mavenrc
- ./mvnw -T4 -DskipTests=true -Dmaven.javadoc.skip=true install
jobs:
include:
- stage: test
env: [ NAME=core ]
script: ./mvnw -pl core test
- env: [ NAME=selenium ]
script: ./mvnw -pl modules/selenium test
- env: [ NAME=modules ]
script: ./mvnw -pl !core,!modules/selenium test
# Run Docker-in-Docker tests inside Alpine and shading tests
- env: [ NAME="docker-in-alpine-docker&shade" ]
script:
- |
DOCKER_HOST=unix:///var/run/docker.sock DOCKER_TLS_VERIFY= docker run -t --rm \
-v "$HOME/.m2":/root/.m2/ \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":"$(pwd)" \
-w "$(pwd)" \
openjdk:8-jdk-alpine \
./mvnw -pl core test -Dtest=*GenericContainerRuleTest
- ./mvnw test -f shade-test/pom.xml
- stage: deploy
sudo: false
services: []
install: skip
script: skip
deploy:
provider: script
script: release/deploy.sh
on:
tags: true
branch: master