-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
38 lines (35 loc) · 1.19 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
machine:
node:
version: 0.10.40
services:
- docker
pre:
- meteor update || curl https://install.meteor.com | /bin/sh
dependencies:
cache_directories:
- "~/.meteor"
override:
- cd $HOME/reaction
- chmod +x bin/clone-packages.sh
- ./bin/clone-packages.sh
- meteor update
- docker build -t reactioncommerce/prequel .
test:
override:
- cd $HOME/reaction
- VELOCITY_TEST_PACKAGES=1 meteor test-packages --driver-package velocity:html-reporter --velocity --release velocity:[email protected]_1
- docker run -d -p :80:80 reactioncommerce/prequel; sleep 10
- curl --retry 10 --retry-delay 5 -v http://localhost
deployment:
prequel:
branch: development
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker tag reactioncommerce/prequel reactioncommerce/prequel:$CIRCLE_BUILD_NUM
- docker push reactioncommerce/prequel:$CIRCLE_BUILD_NUM
release:
branch: master
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker tag reactioncommerce/prequel reactioncommerce/reaction:$CIRCLE_BUILD_NUM
- docker push reactioncommerce/reaction:$CIRCLE_BUILD_NUM