forked from reactioncommerce/reaction
-
Notifications
You must be signed in to change notification settings - Fork 8
/
circle.yml
41 lines (38 loc) · 1.36 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
machine:
node:
version: 0.10.41
services:
- docker
pre:
- meteor update || curl https://install.meteor.com | /bin/sh
dependencies:
cache_directories:
- "~/.meteor"
- "~/docker"
override:
- cd $HOME/reaction
- chmod +x bin/clone-packages.sh
- ./bin/clone-packages.sh
- if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; fi
- docker build -t reactioncommerce/prequel .
- mkdir -p ~/docker; docker save reactioncommerce/prequel > ~/docker/image.tar
test:
override:
- cd $HOME/reaction
- VELOCITY_TEST_PACKAGES=1 meteor test-packages --driver-package velocity:html-reporter --velocity
- docker-compose -f docker/docker-compose.test.yml up -d; 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 build -t reactioncommerce/prequel .
- 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