generated from liachmodded/carttemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (47 loc) · 1.18 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
language: java
dist: trusty
sudo: required
jdk:
- oraclejdk8
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/"
jobs:
include:
- stage: build
script: "./gradlew build -S -i"
- stage: deploy
before_install: sudo apt-get install pandoc
install: pandoc --from markdown --to html4 --standalone -o readme.html README.md
script: "./gradlew javadocs build 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: master
- provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file_glob: true
file: build/libs/*
skip_cleanup: true
on:
tags: true
stages:
- build
- name: deploy
if: repo = liachmodded/liachskeleton AND env(bintray_key) AND env(GITHUB_OAUTH_TOKEN)
env:
global:
- TERM=dumb
notifications:
email: false