forked from shippableSamples/micro-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshippable.yml
37 lines (32 loc) · 1.02 KB
/
shippable.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
# language setting
language: node_js
# version numbers, testing against one version of node
node_js:
- 0.12
env:
- XUNIT_FILE=../shippable/testresults/result.xml API_PORT=3001
build:
pre_ci:
- cd micro-api && docker build -t manojsb/micro-api .
pre_ci_boot:
image_name: manojsb/micro-api
image_tag: latest
pull: false
ci:
- mkdir -p ../shippable/testresults
- mkdir -p ../shippable/codecoverage
- cd micro-api
- npm install
- grunt
on_success:
- cd /root/src/github.com/ManojBableshwar/micro-sample/micro-www && docker build -t manojsb/micro-www .
- cd ..
- cd micro-api && docker build -t manojsb/micro-api .
- docker tag -f manojsb/micro-www:latest manojsb/micro-www:tip
- docker tag -f manojsb/micro-api:latest manojsb/micro-api:tip
- docker push manojsb/micro-api:tip
- docker push manojsb/micro-www:tip
integrations:
hub:
- integrationName: Docker
type: docker