-
Notifications
You must be signed in to change notification settings - Fork 35
/
wercker.yml
39 lines (38 loc) · 1.3 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
box: java
# Build definition
build:
# The steps that will be executed on build
steps:
- bigtruedata/install-node:
version: 8.0.0
- script:
name: show base information
code: |
./gradlew -v
node -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: |
export NODE_ENV=production
./gradlew --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
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-smoke-script
- script:
name: smoke script
code: |
curl -v -i willitconnect-smoke-test.cfapps.io/v2/willitconnect -d '{"target":"http://amazon.com"}' -H "Content-Type: application/json" | grep 200
curl -v -i willitconnect-smoke-test.cfapps.io/v2/willitconnect -H "Content-Type: application/json" -d '{"target":"http://google.com", "http_proxy":"http-proxy-postnecrotic-complaint.cfapps.io:80"}'