-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
56 lines (50 loc) · 1.61 KB
/
.travis.yml
File metadata and controls
56 lines (50 loc) · 1.61 KB
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
language: java
dist: trusty
sudo: false
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/
branches:
only:
- master
- dev
jobs:
include:
- install: ./gradlew assemble -PnoJavadoc=true -Prelease=$TRAVIS_PULL_REQUEST
script: ./gradlew check -Prelease=$TRAVIS_PULL_REQUEST
os: linux
jdk: openjdk8
- install: ./gradlew assemble -PnoJavadoc=true -Prelease=$TRAVIS_PULL_REQUEST
script: ./gradlew check -Prelease=$TRAVIS_PULL_REQUEST
os: linux
jdk: oraclejdk8
- stage: release
os: linux
jdk: openjdk8
install: ./gradlew assemble -Penv=prod -Prelease
script: ./gradlew deploy -Penv=prod -Prelease
after_success:
- bash <(curl -s https://codecov.io/bash)
- git config --local user.name "Travis CI Deployment Bot"
- git config --local user.email "[email protected]"
- ./gradlew tag -Prelease
- export GRADLE_PROJECT_RELEASE_NAME=$(./gradlew getReleaseName --quiet)
- export GRADLE_PROJECT_RELEASE_NOTES=$(./gradlew getReleaseNotes --quiet)
deploy:
- provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
name: v${GRADLE_PROJECT_RELEASE_NAME} Release
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: build/docs/orchid
target_branch: gh-pages
stages:
- test
- name: release
if: branch = master AND tag IS blank AND type IN (push)