-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (32 loc) · 1.13 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
language: java
addons:
sonarcloud:
organization: "mozvip-github"
script:
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
jdk:
- oraclejdk8
install:
- mvn --settings .travis/settings.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --batch || true
deploy:
-
provider: script
script: mvn clean deploy --settings .travis/settings.xml -DskipTests=true -B -U
skip_cleanup: true
on:
repo: $TRAVIS_REPO_SLUG
branch: master
jdk: oraclejdk8
-
provider: script
script: mvn --settings .travis/settings.xml org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$TRAVIS_TAG 1>/dev/null 2>/dev/null; mvn clean deploy --settings .travis/settings.xml -DskipTests=true -B -U
skip_cleanup: true
on:
repo: $TRAVIS_REPO_SLUG
tags: true
jdk: oraclejdk8
after_success:
- bash <(curl -s https://codecov.io/bash)