forked from krujos/willitconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwercker.yml
More file actions
48 lines (47 loc) · 1.29 KB
/
wercker.yml
File metadata and controls
48 lines (47 loc) · 1.29 KB
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
box: gambtho/java-node
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: show base information
code: |
./gradlew -v
javac -version
export
- npm-install
- script:
name: run tests
code: |
./gradlew --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR test
- script:
name: run build
code: |
./gradlew --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
- script:
name: upload artifacts
code: |
#gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR uploadArtifacts
echo 'step not implemented'
#slack notification build step
#test webhook
after-steps:
- slack-notifier:
url: $SLACK_TOKEN
channel: builds
deploy:
steps:
- dlapiduz/cloud-foundry-deploy:
api: $CF_API # Set as environment variables
username: $CF_USER
password: $CF_PASS
organization: $CF_ORG
space: $CF_SPACE
appname: willitconnect
properties:
cloudfoundry_path: $WERCKER_CACHE_DIR
#slack notification deploy step
after-steps:
- slack-notifier:
url: $SLACK_TOKEN
channel: builds