forked from exxcellent/olingo-jpa-processor-v4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (38 loc) · 1.18 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
branches:
only:
- master
- eXXcellent_adaptions
language: java
# for an overview see https://docs.travis-ci.com/user/reference/overview/
os:
- linux
sudo: required
dist: xenial
jdk:
# - oraclejdk8
# - oraclejdk9
- openjdk8
cache:
directories:
- $HOME/.m2/repository
# 'true' will skip install step
install: true
# define the stage ordering for job building
stages:
- build_with_hibernate
- build_with_eclipselink + coverage upload
- deploy
# define the jobs self for all the stages
jobs:
include:
- stage: build_with_hibernate
script: mvn clean verify -Duse-hibernate -DskipITs -Dmaven.source.skip -Dmaven.javadoc.skip
- stage: build_with_eclipselink + coverage upload
script: mvn clean verify -Duse-eclipselink -Ddisable.jetty=false -Dmaven.source.skip -Dmaven.javadoc.skip
after_success:
bash <(curl -s https://codecov.io/bash) -X gcov -Z -F unittests -f code-coverage-report/target/jacoco-aggregate-ut/jacoco.xml
- stage: deploy
script: "cp .travis.settings.xml $HOME/.m2/settings.xml && sh -c 'mvn clean package deploy:deploy -DskipTests -Djetty.skip'"
skip_cleanup: false
on:
branch: eXXcellent_adaptions