source: osm/applications/editors/josm/plugins/mapillary/.travis.yml@ 31813

Last change on this file since 31813 was 31813, checked in by floscher, 9 years ago

[mapillary] Remove secret environment variable from travis configuration (not needed anymore)

File size: 1.2 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
Note: See TracBrowser for help on using the repository browser.