-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (27 loc) · 897 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
28
29
30
31
32
33
34
language: java
jdk:
- openjdk8
cache:
directories:
- '$HOME/.m2/repository'
before_install:
script:
- mvn clean package -DskipTests=true
after_success:
- cd ./target
- git init
- git config user.name "Starrier"
- git config user.email "starrier@starrier.com"
- git add iShare.war
- git commit -m "travis-ci"
- git push --force --quiet "https://${GITHUB_TOKEN}@${GH_REF}" master:master
- - mvn clean -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID cobertura:cobertura coveralls:report
- mvn clean test jacoco:report coveralls:report
- mvn org.eluder.coveralls:coveralls-maven-plugin:report -DrepoToken="${COVERALLS_TOKEN}"
- mvn sonar:sonar -Dsonar.projectKey=Starrier_iShare -Dsonar.organization=starrier -Dsonar.host.url=https://sonarcloud.io -Dsonar.login="${SONAR_TOKEN}"
branches:
only:
- master
env:
global:
- GH_REF=https://github.com/Starrier/iShare.git