forked from darkevilmac/pomf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (49 loc) · 1.24 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
language: java
sudo: required
jdk:
- openjdk14
git:
quiet: true
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/"
assemble: true
install: true
jobs:
include:
- stage: build
script: "./gradlew build javadocJar checkMappings -S -i"
- stage: deploy
before_install: sudo apt-get install pandoc
install: pandoc --from markdown --to html5 --standalone -o readme.html README.md
script: "./gradlew build javadocJar checkMappings bintrayUpload publishMavenGitHubPublicationToGitHubRepository -S -i"
deploy:
- provider: pages
github_token: "$GITHUB_OAUTH_TOKEN"
local_dir: build/docs/javadoc
keep_history: true
skip_cleanup: true
target_branch: gh-pages
on:
branch: main
- provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file_glob: true
file: build/libs/*
skip_cleanup: true
on:
tags: true
stages:
- name: build
if: repo != liachmodded/yarn OR branch != main
- name: deploy
if: repo = liachmodded/yarn AND branch = main
env:
global:
- TERM=dumb
notifications:
email: false