forked from rakam-io/rakam-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (28 loc) · 791 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
sudo: required
dist: trusty
language: java
jdk:
- oraclejdk8
services:
- docker
before_install:
- cp .travis_settings.xml ~/.m2/settings.xml
install: ./mvnw install -DskipTests --quiet
script: ./mvnw test
addons:
apt:
packages:
- oracle-java8-installer
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/5bfce3ef6a29f96a2ded
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
after_success:
- >
[ "$TRAVIS_BRANCH" == "master" ]
&& curl -X POST -H "Content-Type: application/json"
--data '{"docker_tag_name": ${TRAVIS_TAG:=latest}}'
https://registry.hub.docker.com/u/buremba/rakam/trigger/$DOCKER_HUB_TOKEN/