forked from osmlab/josm-atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (73 loc) · 5.36 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
env:
global:
- # GITHUB_SECRET_TOKEN
- secure: "ajJ1A26mzEJ1yiJrbXn3QYPMyy0wH/tzF4XsX54t3v9wdvHF/dqYWvAB1YW3yANqYC6ET7H/Oj4vcDpQ6ah+AvF3ksBsYphRA5jsJsLp6u5Hbhsm3a973Fym1reF/kgO0U+IaQDa4V3r2SqU4xEDr1lVs1sQn+sSMg0cMAuL7tbmNCJrhUIXz9OFEYR4I9X+1Muyxes+zkbG+T1oRDU7aSHmz8w4AEpivD0kAV4w7TIjgtHIndn2XeUircK6lr26HuXe2pxNQnwPx5K/7iqe170kwjLOhp41sJ/gjcrUkZP2Jc5VF/uMdhtDPZ+3+tI7f7uPkGWHZBwQNM92uZb4ADuZDgdfzRat8qUMpGCYpr1IvCBdONNX21Ovyw3yHzGoRSW0qm3aRBJRPhrgtcWN3JR37kvs4K+5c8cF2HYnJzKW3xfesrl+uEqRgJG8PkBBclXWWK1Z2BHSVRzOCTYCIhNFeoXeXdDru+0kPLIA5EoSZqosRDyH7UVHtE4wYjPPYZrSaIYUTsy8Jy5470csZDkO9Dt7vU+QePND8TxAc0S63c9Ya9koFKaGRQQn0Mqlic9FZlS5fXuv96Ln+GgIt3DUOYhRrvYzTEvEysjX/YenF65rOv0lCWlbkpOA5MFJzla15eVe7cQbZ7jrpw5BK5mW+8ul0eP6U75epUPGAkA="
- # SONATYPE_USERNAME
- secure: "cT+5eIUMW3IDWZ5/KyInxKwI6volF4J31YNkonarny4XnTUUQXpOOQza8sUymqr/rC0E3MrvPcdPAQccwVqmdT7lco3V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aWXNvTCWYF9BtDLthpZinwwUf27Ap00yVVVPEJ0zifcLaM0W0oesUCZAagcEB25P4moBFmXNkWfX63Ef1Gyfkung8/zZVsWdKvHx9ArGyipMIGu9LyV5hMci80qxmTc0nmUW8svBqRWB09szmkKdgCdqeBnFTLrXEXr6nqB3gjQKyQtGz91jOxBguzVgCBb8KlXNJGVyph99tzP+zEu5uqdjDk7ilIQrDETLlJ3quLmvaYAHxIyk1KiN6WUmwhYo0ni+qMjxEDy1ghTbQmXlcYyj4Ia+Dz9qfZMk8zrV5HqffVm6i2kss0GBLCJlhvvFv54qwqoJuI+hEt9Ocs5NKKiuPqI1SVUJzWLem4uLP8bwDa13jgVxb6LWNmNBMOyZxN0iNqMpI9yjbsg84IgDESMtF9x87MR3Vk0gTwOyseKc6hbTuhjNtcQfLJIboPfP3j30bAe7CQTKng1pxngWOLCEsruE3SXc5/Lo/3TBm8PS+22U1Zm3TG3EBFS9jpKOBnz3/HbaUf8Y2ak="
- GPG_KEY_LOCATION=".travis/secring.gpg"
- ENCRYPTED_GPG_KEY_LOCATION=".travis/secring.gpg.enc"
branches:
only:
- master
- dev
- /^v\d+\.\d+(\.\d+)?$/
# Default settings for build stages
language: java
jdk:
- openjdk8
- oraclejdk8
- oraclejdk9
install:
- chmod ug+x .travis/*.sh
- .travis/install.sh
script: .travis/build.sh
# Build stages
jobs:
include:
- stage: i18n
language: python
python: "3.6"
# Install Transifex client v0.13.1
install: pip install git+https://github.com/transifex/transifex-client.git@08deb1255de7217d2574e3c49dcb578f03b195e0#egg=transifex-client
script: ./gradlew generatePot
after_success: |
if [ ! -z "$TRANSIFEX_TOKEN" ]; then
tx --token="$TRANSIFEX_TOKEN" --force-save --no-interactive init
git checkout HEAD .tx/config
tx push -s --no-interactive
fi
- stage: merge dev to master
script: .travis/merge-dev-to-master.sh
- stage: tag master
script: .travis/tag-master.sh
- stage: GitHub release
script: ./gradlew build
env: MANUAL_RELEASE_TRIGGERED=true
deploy:
api_key: $GITHUB_SECRET_TOKEN
file_glob: true
provider: releases
skip_cleanup: true
file:
- "build/libs/*"
- "build/dist/josm-atlas.jar"
- "build/tmp/jar/MANIFEST.MF"
on:
tags: true
# Order and conditions for build stages
stages:
- name: test
- name: i18n
if: branch = master AND type = push AND repo = osmlab/josm-atlas
- name: merge dev to master
if: branch = dev AND type = push AND repo = osmlab/josm-atlas
- name: tag master
if: branch = master AND type = push AND repo = osmlab/josm-atlas
- name: GitHub release
if: tag IS present AND type = push AND repo = osmlab/josm-atlas