-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
38 lines (37 loc) · 893 Bytes
/
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
box: atende/build-image
services:
- id: postgres
tag: 9.5
env:
POSTGRES_PASSWORD: Thooch5r
- id: rabbitmq
tag: 3.6
build:
steps:
- script:
name: env
code: env
- 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: gradle build
code: |
export GRADLE_USER_HOME=$WERCKER_CACHE_DIR/gradle
export SPRING_PROFILES_ACTIVE=ci
./gradlew --full-stacktrace build
- script:
name: build docs
code: |
mkdocs build
deploy:
steps:
- giovanni/gh-pages:
repo: atende/audit-mq-collector
token: $GIT_TOKEN
basedir: site