forked from openequella/openEQUELLA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
36 lines (35 loc) · 1.28 KB
/
buildspec.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
version: 0.2
env:
variables:
KALTURA_BRANCH: master
AUTOTEST_CONFIG: "autotest/codebuild.conf"
EQ_EXIFTOOL_PATH: "/usr/bin/exiftool"
OLD_TEST_NEWUI: true
phases:
pre_build:
commands:
- env | sort | grep -vi -e key -e secret -e password
- setupBuild
- . $NVM_DIR/nvm.sh && set +a && nvm install # version from nvmrc
- npm config set unsafe-perm true
install:
commands:
- service postgresql start
build:
commands:
- (npm ci && cd react-front-end && npm ci)
- (cd Source/Plugins/Kaltura/com.tle.web.wizard.controls.kaltura/js && npm ci && npm run build)
- (npm run check:ts && npm run check:ts-types-source && npm run check:license)
- (cd react-front-end && npm test)
- (cd Source/Plugins/Core/com.equella.core/test/javascript && npm cit)
- ./sbt -no-colors -Dconfig.file=${HOME}/build.conf test installerZip writeLanguagePack writeScriptingJavadoc
- ./sbt -no-colors "project autotest" installEquella startEquella configureInstall setupForTests Tests/test Tests/Serial/test OldTests/test coverageReport
- (cd import-export-tool && ./gradlew build)
post_build:
commands:
- publishBuildResults
cache:
paths:
- "/root/.ivy2/**/*"
- "/root/.npm/**/*"
- "/root/.sbt/**/*"