-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
56 lines (49 loc) · 1.62 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
language: java
notifications:
email:
if: type = cron OR branch = master
recipients:
on_success: change
on_failure: always
jdk:
- openjdk8
addons:
sonarcloud:
organization: project-xavier
token: $SONAR_TOKEN
sudo: required
services:
- docker
# Fix for https://travis-ci.community/t/problematic-docker-compose-version-1-23-1/5362/3
before_install:
- docker-compose --version
- docker info
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-Linux-x86_64 > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose --version
- docker info
install:
- cp ./configuration/settings.xml $HOME/.m2/settings.xml
- mvn install -P !fuse-fabric8-docker -DskipTests=true -Dmaven.javadoc.skip=true -B -V
jobs:
include:
- stage: Test
env:
- CAMEL_SPRINGBOOT_TRACING=false
- LOGGING_LEVEL_ROOT=WARN
- ANALYSIS_DATAINTEGRITY_LOG=false
script:
- mvn test -Pcoverage -Danalysis.dataintegrity.log=false
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi'
- bash <(curl -s https://codecov.io/bash)