-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
executable file
·41 lines (35 loc) · 1.26 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
language: java
sudo: false
jdk:
- openjdk8
env:
- CODACY_PROJECT_TOKEN=636acc26006042628c9ec9391472a1c6
before_install:
- sudo apt-get install jq
- wget -O ~/codacy-coverage-reporter-assembly-latest.jar https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/4.0.0/codacy-coverage-reporter-4.0.0-assembly.jar
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi
script: "mvn cobertura:cobertura"
after_success:
- bash <(curl -s https://codecov.io/bash)
- mvn site
- java -jar ~/codacy-coverage-reporter-assembly-latest.jar report -l Java -r target/site/jacoco/jacoco.xml
install:
- mvn --settings .travis/settings.xml install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip -B -V
deploy:
-
provider: script
script: .travis/deploy.sh
skip_cleanup: true
on:
repo: opennars/opennars-lab
branch: master
jdk: oraclejdk8
-
provider: script
script: .travis/deploy.sh
skip_cleanup: true
on:
repo: opennars/opennars-gui
tags: true
jdk: oraclejdk8