-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
59 lines (57 loc) · 1.81 KB
/
wercker.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
box: atende/build-image
services:
- id: postgres
tag: 9.5
env:
POSTGRES_PASSWORD: Thooch5r
build:
steps:
- script:
name: "Wait for POSTGRES connection"
code: |
echo "Postgresql on $POSTGRES_PORT_5432_TCP_ADDR $POSTGRES_PORT_5432_TCP_PORT"
while ! pg_isready -h $POSTGRES_PORT_5432_TCP_ADDR -p $POSTGRES_PORT_5432_TCP_PORT
do
sleep 3;
done
# - script:
# name: "setup npm cache"
# code: |
# su ciuser
# debug 'Creating $WERCKER_CACHE_DIR/wercker/npm'
# mkdir -p $WERCKER_CACHE_DIR/wercker/npm
# debug 'Creating $WERCKER_CACHE_DIR/wercker/node_modules'
# mkdir -p $WERCKER_CACHE_DIR/wercker/node_modules
# debug 'Configuring npm to use wercker cache'
# npm config set cache $WERCKER_CACHE_DIR/wercker/npm
# rm -rf $WERCKER_SOURCE_DIR/client/node_modules
# ln -s $WERCKER_CACHE_DIR/node_modules $WERCKER_SOURCE_DIR/client/node_modules
- script:
name: "start display"
code: |
/etc/init.d/xvfb start
- script:
name: gradle build
code: |
su ciuser
export DISPLAY=:99
export GRADLE_USER_HOME=$WERCKER_CACHE_DIR/gradle
export SPRING_PROFILES_ACTIVE=ci
if [ -e src/main/resources/application-test.properties ]
then
rm src/main/resources/application-test.properties
fi
cp client/src/environments/environment.prod.ts.dist client/src/environments/environment.prod.ts
cp client/src/environments/environment.ts.dist client/src/environments/environment.ts
./gradlew test
- script:
name: build docs
code: |
su ciuser
mkdocs build
deploy:
steps:
- giovanni/gh-pages:
repo: atende/audit-view
token: $GIT_TOKEN
basedir: site