forked from reactioncommerce/reaction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
35 lines (32 loc) · 1001 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
29
30
31
32
33
34
35
machine:
node:
version: 0.10.40
services:
- docker
dependencies:
cache_directories:
- "/tmp/reaction-packages"
- "~/docker"
- "~/.meteor"
- "/usr/local/bin"
pre:
- meteor update || curl https://install.meteor.com | /bin/sh
- ./bin/clone-packages.sh
override:
- docker build -t reactioncommerce/reaction .
test:
override:
- VELOCITY_TEST_PACKAGES=1 meteor test-packages --driver-package velocity:html-reporter --velocity --release velocity:METEOR@1.1.0.3_2
- docker run -d -p :80:3000 reactioncommerce/reaction; sleep 10
- curl --retry 10 --retry-delay 5 -v http://localhost
deployment:
hub:
branch: master
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push reactioncommerce/reaction:$CIRCLE_BUILD_NUM
hub:
branch: development
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push reactioncommerce/aliquam:$CIRCLE_BUILD_NUM