-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcircle.yml
28 lines (25 loc) · 921 Bytes
/
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
machine:
node:
version: 6.9.0
services:
- docker
dependencies:
post:
- docker info
test:
pre:
- docker run -d -e EXTERNAL_IP=10.0.4.1 --name=turnserver --restart="on-failure:10" --net=host -p 3478:3478 -p 3478:3478/udp bprodoehl/turnserver
- sudo lxc-attach -n "$(docker inspect --format "{{.Id}}" turnserver)" -- bash -c "echo user=test:test >> /etc/turnserver.conf"
- sudo lxc-attach -n "$(docker inspect --format "{{.Id}}" turnserver)" -- bash -c "echo realm=microminion.io >> /etc/turnserver.conf"
- sudo lxc-attach -n "$(docker inspect --format "{{.Id}}" turnserver)" -- bash -c "echo verbose >> /etc/turnserver.conf"
- docker restart turnserver
- sleep 10
override:
- npm run test-node
- npm run build
deployment:
npm:
branch: master
commands:
- echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
- npm run 2npm