Skip to content

Commit 8108591

Browse files
committed
Add Travis CI configuration for releasing to GitHub and sending translations 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
1 parent 1bfc88b commit 8108591

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.travis.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Default settings for build stages
2+
language: java
3+
jdk:
4+
- openjdk8
5+
- oraclejdk8
6+
- oraclejdk9
7+
8+
script: ./gradlew build minJosmVersionClasses
9+
10+
deploy:
11+
provider: releases
12+
file_glob: true
13+
api_key: "$GITHUB_TOKEN"
14+
file:
15+
- "build/dist/pt_assistant.jar"
16+
- "build/tmp/jar/MANIFEST.MF"
17+
skip_cleanup: true
18+
on:
19+
condition: -n $GITHUB_TOKEN
20+
tags: true
21+
jdk: openjdk8
22+
23+
jobs:
24+
include:
25+
- stage: i18n
26+
language: python
27+
python: "3.6"
28+
install: pip install git+https://github.com/transifex/transifex-client.git
29+
script: |
30+
if [ ! -z "$TRANSIFEX_TOKEN" ]; then
31+
./gradlew generatePot
32+
TX_TOKEN="$TRANSIFEX_TOKEN" tx push -s --no-interactive
33+
fi
34+
35+
stages:
36+
- test
37+
- name: i18n
38+
if: type = push AND branch = trunk

0 commit comments

Comments
 (0)