-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
36 lines (34 loc) · 874 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
box: atende/build-image
services:
- id: postgres
tag: 9.4
env:
POSTGRES_PASSWORD: 1234
POSTGRES_USER: notification
POSTGRES_DB: notification_test
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: 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/notification-server
token: $GIT_TOKEN
basedir: site