forked from saleor/saleor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
33 lines (31 loc) · 974 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
machine:
node:
version: "6.1.0"
python:
version: "3.5.1"
environment:
DATABASE_URL: postgres://ubuntu:@127.0.0.1:5432/circle_test
SECRET_KEY: irrelevant
services:
- docker
dependencies:
override:
- yarn
- pip install -r requirements.txt
post:
- yarn run build-assets
- ./manage.py collectstatic --no-input
test:
override:
- mkdir -p $CIRCLE_TEST_REPORTS/pytest
- pytest --junitxml=$CIRCLE_TEST_REPORTS/pytest/junit.xml
deployment:
release:
tag: /v.*/
commands:
- echo "__version__ = '$(git describe --tags)'" > saleor/version.py
- docker login -e $DOCKERCLOUD_EMAIL -u $DOCKERCLOUD_USER -p $DOCKERCLOUD_PASS
- docker build -t mirumee/saleor:$CIRCLE_TAG -t mirumee/saleor:latest .
- docker push mirumee/saleor:$CIRCLE_TAG
- docker push mirumee/saleor:latest
- curl -X POST https://circleci.com/api/v1.1/project/github/mirumee/saleor-demo?circle-token=$CIRCLE_API_TOKEN