forked from wuseal/JsonToKotlinClass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·63 lines (60 loc) · 3.04 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
language: java
before_install:
- chmod +x library/gradlew
- chmod +x library/gradle/wrapper/gradle-wrapper.jar
script:
- ./gradlew check --scan -s
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./gradlew generateChangelog && cat ./doc/CHANGELOG.md; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./gradlew buildPlugin; fi
- cd library && ./gradlew build test -s && cd ..
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./gradlew createGithubReleaseNotes; fi
deploy:
- provider: releases
api_key: $GH_TOKEN
file_glob: true
file: build/distributions/JsonToKotlinClass*.zip
edge: true
skip_cleanup: true
prerelease: true
release_notes_file: "./githubReleaseNote.md"
on:
tags: true
repo: wuseal/JsonToKotlinClass
condition: "$TRAVIS_TAG =~ (eap|EAP)"
- provider: releases
api_key: $GH_TOKEN
file_glob: true
file: build/distributions/JsonToKotlinClass*.zip
edge: true
skip_cleanup: true
prerelease: false
release_notes_file: "./githubReleaseNote.md"
on:
tags: true
repo: wuseal/JsonToKotlinClass
condition: "$TRAVIS_TAG =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
- provider: script
script: "./gradlew publishPlugin -Dchannels=eap"
skip_cleanup: true
on:
tags: true
repo: wuseal/JsonToKotlinClass
condition: "$TRAVIS_TAG =~ (eap|EAP)"
- provider: script
script: "./gradlew publishPlugin"
skip_cleanup: true
on:
tags: true
repo: wuseal/JsonToKotlinClass
condition: "$TRAVIS_TAG =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
env:
global:
- secure: qwrh8fE9lGA3RTzMvV7aA1jN3Hp271GEnSzaWZZIbQeQV36OuZ4S9uYkSIIbVvDZ1uyodh67UOFv7WgmaYkQJmVpW0YjObwfquaLA86ibZaHj7c4SZDXOkVhq1b3Vbhp1G9dCIGDeHmx9OVakmhvEr6ZmuGyskLA0oXS5dDXClUAeINRS9hX7sCZRRVkDl/s2hrqiUINYKEYUyE6eUaIaqCH1NYw5ywxEpaMtobDsxjcttKuspY69ak0rNoUMVVHupS1B5jRpUuMzJc/8YIf0u1MTxg6QIWy+xPWSl1f/NP/PvA1Bx1BcZnTnumemYyn6MG0W6SXIAPLPPHnWmDFnZPls3krk48/HLWd9j/HeMqahG093ZxB9DV1rls+OCgBFmJPdf5A2RznG7afnpMqj/juzyX/qaGfGDkljo6SsPKWHo4ffT7KcGsHB/dM3Gf5qTDqQ3SWuDLqGjZpvvODjM/PSKBsdADpOY85wZnq4nYHm3cQqtMCQOt+Ztr9SXAu3d5YA/+ZUuvdhlQQKJOxn/YcEu3CvrmbBgibCkeL/jJzcePmWidbYmiwBl+ZRVu47y9x8fMWQVn0OELrX64dvAUrXh8cwvDT00R8Hk8mWkpgnB7oSf1+BS9C9KPdWvJIpYpzC/xfXvAu2NOcJj42guv83/EMxWFsM644GDQkwuw=
- secure: LpbTIpqwuV7QQYoKPxrZ9/sMxDyIqeDOqg3LcOxpZXcGBVD05G88VLiy+moSNzK8p/oCYkc7ky+SzeLBC+lksRQQ4hN1+SJWE5+Uht6woroaD9JvAhfMz49xIr3Cm+PRjN5hIxqUQUXDQ7DiJ5n7Dl4OAAtle6vXZxuJGkx+DOnXR69xEFNTiwpd10mQHEqWhihXOZ2C9egxkZiJRO6kgrJVsUMdfNFMZ84+8s2baXC5tmSTzEauUKiJccoAYEqr5ZDtjY3VIEwmOEufvIyNierv26rlNORGb79zqmHpePCA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