-
Notifications
You must be signed in to change notification settings - Fork 105
/
.travis.yml
27 lines (21 loc) · 963 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
env:
global:
- MAVEN_OPTS=-Dmaven.repo.local=.m2/repository
- MQTT_WEBSOCKET_VERSION=1.0.1
cache:
directories:
- .jmeter
- .m2
language: java
jdk:
- openjdk8
before_install:
- sudo apt-get -y update
- sudo apt-get -y install python3 default-jre-headless python3-tk python3-setuptools python3-pip python3-dev libxml2-dev libxslt-dev zlib1g-dev net-tools
- chmod -R +x ./.travis
- "sh ./.travis/install-maven-dependency.sh https://github.com/inventit/mqtt-websocket-java/releases/download/$MQTT_WEBSOCKET_VERSION/mqtt-websocket-java-$MQTT_WEBSOCKET_VERSION.jar io.inventit.dev mqtt-websocket-java $MQTT_WEBSOCKET_VERSION"
script:
- "mvn -DskipTests=true clean install --batch-mode"
- "mvn -Djava.awt.headless=true -Dmaven.test.redirectTestOutputToFile=true -Dcobertura.report.format=xml --fail-at-end --batch-mode cobertura:cobertura test"
after_success:
- bash <(curl -s https://codecov.io/bash)