forked from eresearchqut/trrf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.sh
executable file
·47 lines (32 loc) · 909 Bytes
/
ci.sh
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
#!/bin/bash
set -e
#
# Development build and tests
#
# ccg-composer runs as this UID, and needs to be able to
# create output directories within it
# mkdir -p data/
# sudo chown 1000:1000 data/
# ./develop.sh build base
# ./develop.sh build builder
# ./develop.sh build node
# ./develop.sh build dev
# Build the images
docker-compose build
# We're going to lint earlier from now because it is much less expensive then running tests
scripts/lint.sh
# ./develop.sh check-migrations
scripts/check-migrations.sh
#./develop.sh run-unittests
scripts/unit-tests.sh
#./develop.sh aloe teststack
scripts/end2end-tests.sh
#./develop.sh run build lint
#./develop.sh run "" node lint
# Linting moved up
# scripts/lint.sh
# Notes for CD
# export TRRF_VERSION=1.0.0
# docker build -f docker/production/Dockerfile -t eresearchqut/trrf:${TRRF_VERSION} .
# scripts/end2end-tests.sh prod
# Then push to ECR etc.