This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
59 lines (55 loc) · 2.17 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
language: java
jdk: oraclejdk11
dist: trusty
before_cache:
- "rm -f $HOME/.gradle/caches/modules-2/modules-2.lock"
- "rm -fr $HOME/.gradle/caches/*/plugin-resolution/"
before_install:
- echo "artifactory_username=$ARTIFACTORY_USERNAME" > gradle.properties
- echo "artifactory_password=$ARTIFACTORY_PASSWORD" >> gradle.properties
- echo "artifactory_path_android_libraries=https://blockone.jfrog.io/blockone/android-libs" >> gradle.properties
- echo "artifactory_contextURL=https://blockone.jfrog.io/blockone" >> gradle.properties
- echo "artifactory_repo=default" >> gradle.properties
before_deploy:
- echo "artifactory_username=$ARTIFACTORY_USERNAME" > gradle.properties
- echo "artifactory_password=$ARTIFACTORY_PASSWORD" >> gradle.properties
- echo "artifactory_path_android_libraries=https://blockone.jfrog.io/blockone/android-libs" >> gradle.properties
- echo "artifactory_contextURL=https://blockone.jfrog.io/blockone" >> gradle.properties
- echo "artifactory_repo=default" >> gradle.properties
deploy:
- skip_cleanup: true
# feature branches deploy to feature-local
- provider: script
skip_cleanup: true
script: "bash scripts/deploy-artifactory.sh 'android-libs-feature-local'"
on:
all_branches: true
condition: ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} =~ ^feature\/.*$
# develop deploys to dev local
- provider: script
skip_cleanup: true
script: "bash scripts/deploy-artifactory.sh 'android-libs-dev-local'"
on:
branch:
- develop
# release branches and master deploy to release local
- provider: script
skip_cleanup: true
script: "bash scripts/deploy-artifactory.sh 'android-libs-release-local'"
on:
all_branches: true
condition: $TRAVIS_BRANCH == master || ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} =~ ^release\/.*$
# tagged releases from master, go to distribution
- provider: script
skip_cleanup: true
script: "bash scripts/deploy-artifactory.sh 'eosiojava-product-eosio-dist'"
on:
tags: true
branch: master
after_deploy:
- echo "cleaning up properties"
- rm gradle.properties
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/