forked from vmware-tanzu-learning/pal-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.yml
More file actions
35 lines (26 loc) · 637 Bytes
/
build.yml
File metadata and controls
35 lines (26 loc) · 637 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
platform: linux
image_resource:
type: docker-image
source:
repository: openjdk
tag: '8-jdk'
inputs:
- name: pal-tracker
- name: version
outputs:
- name: build-output
run:
path: bash
args:
- -exc
- |
export DEBIAN_FRONTEND="noninteractive"
apt-get update
apt-get -y install mysql-server
service mysql start
cd pal-tracker
mysql -uroot < databases/tracker/create_databases.sql
chmod +x gradlew
./gradlew -P version=$(cat ../version/number) testMigrate clean build || (service mysql stop && exit 1)
service mysql stop
cp build/libs/pal-tracker-*.jar ../build-output