Skip to content

Commit

Permalink
Add Travis CI configuration for releasing to GitHub and sending trans…
Browse files Browse the repository at this point in the history
…lations to Transifex

Patch by biswesh and me (floscher).

git-svn-id: https://svn.openstreetmap.org/applications/editors/josm/plugins/pt_assistant@34259 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
  • Loading branch information
floscher committed Jun 7, 2018
1 parent 1bfc88b commit 8108591
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .travis.yml
@@ -0,0 +1,38 @@
# Default settings for build stages
language: java
jdk:
- openjdk8
- oraclejdk8
- oraclejdk9

script: ./gradlew build minJosmVersionClasses

deploy:
provider: releases
file_glob: true
api_key: "$GITHUB_TOKEN"
file:
- "build/dist/pt_assistant.jar"
- "build/tmp/jar/MANIFEST.MF"
skip_cleanup: true
on:
condition: -n $GITHUB_TOKEN
tags: true
jdk: openjdk8

jobs:
include:
- stage: i18n
language: python
python: "3.6"
install: pip install git+https://github.com/transifex/transifex-client.git
script: |
if [ ! -z "$TRANSIFEX_TOKEN" ]; then
./gradlew generatePot
TX_TOKEN="$TRANSIFEX_TOKEN" tx push -s --no-interactive
fi
stages:
- test
- name: i18n
if: type = push AND branch = trunk

0 comments on commit 8108591

Please sign in to comment.