forked from Praqma/JenkinsAsCodeReference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (23 loc) · 849 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
os: linux
dist: trusty
sudo: required
language: java
services:
- docker
cache:
directories:
- $HOME/.gradle
env:
DOCKER_COMPOSE_VERSION: 1.8.0
DOCKER_VERSION: 1.12.1-0~trusty
before_install:
- apt-cache madison docker-engine
- sudo apt-get -o Dpkg::Options::="--force-confnew" install --force-yes docker-engine=${DOCKER_VERSION}
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
script:
- docker info
- cd $(git rev-parse --show-toplevel)/jobdsl-gradle && ./gradlew buildXml
- cd $(git rev-parse --show-toplevel)/jobdsl-gradle && ./gradlew test
- cd $(git rev-parse --show-toplevel)/dockerizeit && http_proxy="" https_proxy="" no_proxy="" docker-compose build