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

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

Publish plugin via GitHub? releases when a tag is pushed

File size: 1.9 KB
Line 
1language: java
2cache:
3  directories: $HOME/.gradle
4jdk:
5  - oraclejdk8
6  - oraclejdk7
7  - openjdk7
8script: ./gradlew build javadoc
9
10# Release the plugin via GitHub releases when pushing a tag
11deploy:
12  provider: releases
13  api_key: "${GH_TOKEN}"
14  file: "build/libs/josm-mapillary-plugin.jar"
15  skip_cleanup: true
16  on:
17    tags: true
18
19#Deploy to GitHub pages
20after_success: |
21  if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
22    git config --global user.email "deploy@travis"
23    git config --global user.name "Travis CI"
24    git remote add deploy "https://floscher:${GH_TOKEN}@github.com/floscher/josm-mapillary-plugin.git"
25    git fetch --depth=1 origin gh-pages:gh-pages
26    git checkout gh-pages
27    git rm -r reports/ docs/
28    mkdir -p reports/ docs/
29    cp -R build/docs/javadoc/ docs/javadoc/
30    cp -R build/reports/tests/ reports/junit/
31    cp -R build/reports/jacoco/ reports/jacoco/
32    cp -R build/reports/findbugs/ reports/findbugs/
33    git stage docs/ reports/
34    masterCommit=`git rev-parse master`
35    git commit -m "Publish developer resources to GitHub pages
36
37  These resources are generated by Travis CI for commit $masterCommit using Gradle."
38    git push deploy gh-pages
39  fi
40env:
41  global:
42    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.