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

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

Automatically deploy build results of master-branch to GitHub? pages

File size: 1.6 KB
Line 
1language: java
2jdk:
3  - oraclejdk8
4  - oraclejdk7
5  - openjdk7
6script: ./gradlew build javadoc
7
8#Deploy to GitHub pages
9after_success: |
10  if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
11    git config --global user.email "deploy@travis"
12    git config --global user.name "Travis CI"
13    git remote add deploy "https://floscher:${GH_TOKEN}@github.com/floscher/josm-mapillary-plugin.git"
14    git fetch --depth=1 origin gh-pages:gh-pages
15    git checkout gh-pages
16    git rm -r reports/ docs/
17    mkdir -p reports/ docs/
18    cp -R build/docs/javadoc/ docs/javadoc/
19    cp -R build/reports/tests/ reports/junit/
20    cp -R build/reports/jacoco/ reports/jacoco/
21    git stage docs/ reports/
22    masterCommit=`git rev-parse master`
23    git commit -m "Publish developer resources to GitHub pages
24    These resources are generated by Travis CI for commit $masterCommit using Gradle."
25    git push deploy gh-pages
26  fi
27env:
28  global:
29    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.