Changeset 32336 in osm


Ignore:
Timestamp:
2016-06-20T14:16:46+02:00 (8 years ago)
Author:
floscher
Message:

Improve publishing of developer resources

  • use the credential store instead of suppressing the output of git push
  • print a message when nothing is published with information on why that's the case
  • now OpenJDK 8 is used instead of OracleJDK 8 for publishing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/.travis.yml

    r32335 r32336  
    2727    tags: true
    2828
    29 #Deploy to GitHub pages
     29# Deploy to GitHub pages
    3030after_script: |
    31   if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
     31  if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_JDK_VERSION" == "openjdk8" ]; then
    3232    git config --global user.email "deploy@travis"
    3333    git config --global user.name "Travis CI"
    34     git remote add deploy "https://floscher:${GH_TOKEN}@github.com/floscher/josm-mapillary-plugin.git"
     34
     35    # Prevent printout of credentials
     36    git config --global credential.helper store
     37    echo "https://${GH_USERNAME}:${GH_TOKEN}@github.com" > $HOME/.git-credentials
     38
     39    git remote add deploy "https://github.com/floscher/josm-mapillary-plugin.git"
    3540    git fetch --depth=1 origin gh-pages:gh-pages
    3641    git checkout gh-pages
     
    4651
    4752  These resources are generated by Travis CI for commit $masterCommit using Gradle."
    48     git push --quiet deploy gh-pages 1>/dev/null 2>&1
     53    git push deploy gh-pages
     54  else
     55    echo "This is branch $TRAVIS_BRANCH with JDK $TRAVIS_JDK_VERSION, developer resources are only published with openjdk8 on branch master."
    4956  fi
    5057
Note: See TracChangeset for help on using the changeset viewer.