forked from bmuschko/gradle-docker-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (30 loc) · 732 Bytes
/
.travis.yml
File metadata and controls
37 lines (30 loc) · 732 Bytes
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
language: java
install: true
sudo: required
addons:
apt:
packages:
- docker-ce
services:
- docker
before_install:
- docker run -d -p 5000:5000 --restart=always --name registry registry:2
jdk: oraclejdk8
jobs:
include:
- stage: all tests
script: ./gradlew build -s
- stage: release
script: skip
deploy:
provider: script
script: ./gradlew -s clean assemble bintrayUpload gitPublishPush -Dorg.ajoberstar.grgit.auth.username=$GH_TOKEN
on:
tags: 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/