This repository was archived by the owner on Apr 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
59 lines (54 loc) · 1.45 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:
- openjdk8
- openjdk11
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/
install: chmod +x ./gradlew
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script: ./gradlew test
after_script: ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
jobs:
include:
- stage: deploy
name: "Documentation Deploy"
jdk: openjdk11
script: ./gradlew publishDoc
if: tag IS present
deploy:
provider: pages
repo: GlitchLib/docs
target-branch: master
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
verbose: true
committer-from-gh: true
local-dir: build/docs
on:
tags: true
- stage: deploy
name: "Bintray Upload"
jdk: openjdk8
script: ./gradlew bintrayUpload -x test
if: tag IS present
- stage: deploy
name: "Create Release"
jdk: openjdk8
script: ./gradlew publishRelease
if: tag IS present
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: build/release/*
draft: true
skip_cleanup: true