-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (43 loc) · 1.06 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
sudo: required
services:
- docker
stages:
- name: compile
if: type = pull_request
- name: test
if: type = pull_request
- name: deploy
# require the type to be push to master
if: type = push AND branch = master
jobs:
include:
- stage: compile
language: java
install: true
os: linux
dist: trusty
jdk: oraclejdk8
script:
- ./gradlew clean assemble
- stage: test
language: java
install: true
os: linux
dist: trusty
jdk: oraclejdk8
script:
- ./gradlew check
- stage: deploy
before_script:
# install heroku CLI
- curl https://cli-assets.heroku.com/install.sh | sh
script:
- heroku container:login
- docker build -f Dockerfile -t quarkus/$HEROKU_APP .
- docker tag quarkus/$HEROKU_APP registry.heroku.com/$HEROKU_APP/web
- docker push registry.heroku.com/$HEROKU_APP/web
- heroku container:release web -a $HEROKU_APP
after_script:
- docker images
on:
branch: master