-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild-gms
executable file
·67 lines (54 loc) · 1.38 KB
/
build-gms
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
#
# This script builds the GMS PI 13 open source release after the
# prerequisites have been installed.
#
# It's intended to be run on a CentOS/RHEL 7 system.
#
set -eux
if [ -z "${REPO_PATH:-}" ]; then
REPO_PATH="$(cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd)"
fi
if [ -z "${CI_DOCKER_REGISTRY:-}" ]; then
export CI_DOCKER_REGISTRY=local
fi
if [ -z "${CI_THIRD_PARTY_DOCKER_REGISTRY:-}" ]; then
export CI_THIRD_PARTY_DOCKER_REGISTRY=registry-1.docker.io/library
fi
if [ -z "${CI_PROJECT_NAME:-}" ]; then
export CI_PROJECT_NAME=gms-common
fi
source ${REPO_PATH}/.bash_env
source ${REPO_PATH}/ci/ci.env
# export these values so subshells can see them
export DOCKER_IMAGE_TAG
export CI_BUILD_DATETIM
export CI_COMMIT_REF_NAME
export CI_COMMIT_REF_SLUG
export CI_COMMIT_REF_SHA
build_docker() {
cd ${REPO_PATH}/docker
time make all
}
build_python() {
cd ${REPO_PATH}/python
export PATH=$PATH:/opt/gradle/bin
time make all
}
build_java() {
cd ${REPO_PATH}/java
export PATH=$PATH:/opt/gradle/bin
time gradle -q --no-daemon build -x test docker dockerTagImageTag dockerTagCiCommitSha
time gradle -q --no-daemon test
}
build_typescript() {
cd ${REPO_PATH}/node/interactive-analysis
time yarn
time yarn build:prod
time yarn bundle:prod:soh
time make all
}
build_docker
build_python
build_java
build_typescript