-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 876 Bytes
/
.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
language: java
before_install:
- chmod +x gradlew
- chmod -R +x travis_scripts
## Default install
#install:
# - ./gradlew assemble
## Default script
#script:
# - ./gradlew check
before_deploy:
- echo "Creating release tag if necessary"
- ./travis_scripts/tag_if_release.sh
- echo "git describe $(git describe)"
deploy:
- provider: script
skip_cleanup: true
script: ./travis_scripts/snapshotDeploy.sh
on:
branch: master
condition: "$(cat 'version.txt') =~ ^.*SNAPSHOT$"
- provider: script
skip_cleanup: true
script: ./travis_scripts/releaseDeploy.sh
on:
branch: master
condition: "! $(cat 'version.txt') =~ ^.*SNAPSHOT$"
after_deploy:
- echo "Pushing tags (if necessary)"
- ./travis_scripts/push_tag_if_release.sh
- echo "Setting next snapshot (if necessary)"
- ./travis_scripts/set_next_snapshot.sh