generated from liachmodded/carttemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
40 lines (39 loc) · 883 Bytes
/
.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
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
install: chmod +x ./gradlew
script: "./gradlew build -S -i"
- stage: deploy
install: true
script: "./gradlew build bintrayUpload publishMavenGitHubPublicationToGitHubRepository -S -i"
deploy:
- provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
files: build/libs/*
skip_cleanup: true
on:
branch: master
tags: true
stages:
- build
- name: deploy
if: repo = liachmodded/brandpacket AND env(bintray_key) AND env(GITHUB_OAUTH_TOKEN)
env:
global:
- TERM=dumb
notifications:
email: false