forked from openequella/openEQUELLA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
34 lines (33 loc) · 1.14 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
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 && nvm install # version from nvmrc
- npm config set unsafe-perm true
install:
commands:
- service postgresql start
build:
commands:
- (npm ci && cd Source/Plugins/Core/com.equella.core/js && npm ci)
- (npm run check:ts && npm run check:ts-types-source && npm run check:license)
- (cd Source/Plugins/Core/com.equella.core/js && npm test)
- sbt -no-colors -Dconfig.file=${HOME}/build.conf test installerZip writeLanguagePack writeScriptingJavadoc
- sbt -mem 2048 -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/**/*"