-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcircle.yml
46 lines (39 loc) · 1.08 KB
/
circle.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
40
41
42
43
44
45
46
version: 2
jobs:
build:
machine: true
working_directory: ~/npm_lazy
environment:
PACKAGE: process
node: node:4.8.1
steps:
- checkout
- run:
name: Build test image
command: docker build --rm=false -t test .
- run:
name: Pull Node image
command: docker pull $node
- run:
name: Basic options test
command: |
docker run -d \
--name basic \
test \
--port=80 --external-url=http://basic
docker run \
--link basic \
-e npm_config_registry=http://basic \
$node \
npm install --verbose $PACKAGE
- run:
name: Environment options test
command: |
docker run -d --name env \
-e NPM_LAZY_PORT=80 \
-e NPM_LAZY_EXTERNAL_URL=http://env \
test
docker run --link env \
-e npm_config_registry=http:/env \
$node \
npm install --verbose $PACKAGE