forked from liuwill-projects/SpringBootKotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
34 lines (32 loc) · 770 Bytes
/
.gitlab-ci.yml
File metadata and controls
34 lines (32 loc) · 770 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
image: java:openjdk-8
stages:
- test
- deploy
before_script:
- apt-get update -y
test_async:
stage: test
script:
- pwd
- cd /usr/lib
- curl -fl https://downloads.gradle.org/distributions/gradle-3.4.1-bin.zip -o gradle-bin.zip
- unzip "gradle-bin.zip"
- ln -s "/usr/lib/gradle-3.4.1/bin/gradle" /usr/bin/gradle
- rm "gradle-bin.zip"
- GRADLE_HOME=/usr/lib/gradle
- PATH=$PATH:$GRADLE_HOME/bin
- cd /builds/techartisan/SpringBootKotlin
- gradle test --info
tags:
- docker
staging:
type: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev rubygems
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_API_KEY
only:
- deploy
tags:
- docker