2017-06-19 21:30:04 +00:00
|
|
|
machine:
|
|
|
|
node:
|
2017-06-22 23:26:08 +00:00
|
|
|
version: 8
|
2017-06-22 22:19:18 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2017-07-11 19:49:24 +00:00
|
|
|
- redis
|
2017-07-17 17:19:53 +00:00
|
|
|
environment:
|
|
|
|
PATH: "/home/ubuntu/send/firefox:$PATH"
|
2017-06-19 21:30:04 +00:00
|
|
|
|
2017-07-17 16:39:51 +00:00
|
|
|
dependencies:
|
|
|
|
pre:
|
2017-07-19 19:03:59 +00:00
|
|
|
- npm i -g get-firefox geckodriver nsp
|
2017-07-17 16:39:51 +00:00
|
|
|
- get-firefox --platform linux --extract --target /home/ubuntu/send
|
|
|
|
|
2017-06-20 22:48:36 +00:00
|
|
|
deployment:
|
|
|
|
latest:
|
|
|
|
branch: master
|
|
|
|
commands:
|
2017-07-21 22:38:35 +00:00
|
|
|
- npm run build
|
2017-06-20 22:48:36 +00:00
|
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
2017-07-06 17:10:32 +00:00
|
|
|
- docker build -t mozilla/send:latest .
|
|
|
|
- docker push mozilla/send:latest
|
2017-06-22 19:56:07 +00:00
|
|
|
tags:
|
2017-06-24 01:54:59 +00:00
|
|
|
tag: /.*/
|
|
|
|
owner: mozilla
|
2017-06-22 19:56:07 +00:00
|
|
|
commands:
|
2017-07-21 22:38:35 +00:00
|
|
|
- npm run build
|
2017-06-22 19:56:07 +00:00
|
|
|
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
2017-07-06 17:10:32 +00:00
|
|
|
- docker build -t mozilla/send:$CIRCLE_TAG .
|
|
|
|
- docker push mozilla/send:$CIRCLE_TAG
|
2017-06-20 19:18:14 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
override:
|
2017-08-02 21:13:53 +00:00
|
|
|
- npm run build:version
|
2017-06-20 19:18:14 +00:00
|
|
|
- npm run lint
|
|
|
|
- npm test
|
2017-07-19 19:03:59 +00:00
|
|
|
- nsp check
|