forked from michaelruocco/environment-properties-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (28 loc) · 815 Bytes
/
.travis.yml
File metadata and controls
35 lines (28 loc) · 815 Bytes
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
language: java
jdk: openjdk8
sudo: false
branches:
except:
- /^environment-properties-plugin-*/
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/
stages:
- name: build
- name: release
if: branch = master
jobs:
include:
- stage: build
script: ./gradlew currentVersion clean build dependencyUpdates
- stage: release
script:
- >
git checkout $TRAVIS_BRANCH;
./gradlew release -Prelease.customUsername=$GITHUB_TOKEN;
./gradlew bintrayUpload -Dbuild.number=$TRAVIS_BUILD_NUMBER;
./gradlew publishPlugins -Pgradle.publish.key=$PUBLISH_KEY -Pgradle.publish.secret=$PUBLISH_SECRET