source: subversion/applications/editors/josm/plugins/mapillary/.travis.yml @ 31407

Last change on this file since 31407 was 31407, checked in by floscher, 5 years ago

Let Travis publish FindBugs? report and cache Gradle dependencies

File size: 1.7 KB
Line 
1language: java
2cache:
3  directories: $HOME/.gradle
4jdk:
5  - oraclejdk8
6  - oraclejdk7
7  - openjdk7
8script: ./gradlew build javadoc
9
10#Deploy to GitHub pages
11after_success: |
12  if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
13    git config --global user.email "deploy@travis"
14    git config --global user.name "Travis CI"
15    git remote add deploy "https://floscher:${GH_TOKEN}@github.com/floscher/josm-mapillary-plugin.git"
16    git fetch --depth=1 origin gh-pages:gh-pages
17    git checkout gh-pages
18    git rm -r reports/ docs/
19    mkdir -p reports/ docs/
20    cp -R build/docs/javadoc/ docs/javadoc/
21    cp -R build/reports/tests/ reports/junit/
22    cp -R build/reports/jacoco/ reports/jacoco/
23    cp -R build/reports/findbugs/ reports/findbugs/
24    git stage docs/ reports/
25    masterCommit=`git rev-parse master`
26    git commit -m "Publish developer resources to GitHub pages
27
28  These resources are generated by Travis CI for commit $masterCommit using Gradle."
29    git push deploy gh-pages
30  fi
31env:
32  global:
33    secure: P97HMtlV6bHf1uiNZ3ka4wBITzt4IU0DB5/oqp0SInAIEQWZF+Setnp2dByJQMmIm0I/Mg2Uj3V3MZdE4sr43OU3PcAUy1RwUXiqds4ubrkbF3nTs8I4ynsmFTsclCqFsoYxyTtNYBctzw8Fc6Yuyb8BvkJvauFoSiqUSzTt+jjsY/AgZusyc4+ZitSU8xd3M7FX8pFkPuktDKE5Eo801XeRCXN4L6drMyZNrQh6sZLKuXXq32MxSsFHDlULCYeVNuG7ehtR3P5Wuds+BRaxW8VwFLkbNPe/jQVYg7kjF4afwM2AWsx2T8Vu60YV1GsW2o2csuznj1EmDjl83qpUV+NS66rkLXHPMXyfVMXpVZ9JmmM7rCVwzPtTxJyZXhaOwu8QyCKinQFkRAvwA5MEuoxBltUBubdCcAFdN6518WpQK5Me1/jRKahZbWtat7Zt+Yh4/wfaxAJhWG14fcDAX8CODdhcPhBvDAiRWPRe2xjtshuKfoRZtRrLxqV48ze6JyMuLRlKbaG5MfBpjnlX+IQPXb8Lv+SZ2k/REoovo/tIHx2eGOpmVFqR0pjVdp8/rQfya9vEaRH6axIW4p871D5c/58K6chkEhGb/ijn9GPtiWTAmxWrQO+nOrTiN68BzUtez111caKtRYlM+XYRjl8Tspor13D9+FHP+Qpkpx0=
Note: See TracBrowser for help on using the repository browser.