forked from mozilla/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
78 lines (74 loc) · 2.07 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
machine:
services:
- docker
python:
version: 2.7.10
node:
version: 0.12.0
environment:
# Django
PIP_DISABLE_PIP_VERSION_CHECK: true
NOSE_WITH_XUNIT: true
NOSE_XUNIT_FILE: "$CIRCLE_TEST_REPORTS/django/nosetests.xml"
DATABASE_URL: postgres://ubuntu:@127.0.0.1:5432/circle_test
LOG_LEVEL: 40
ADMINS: '["[email protected]"]'
HMAC_KEYS: '{"2013-01-01": "prositneujahr"}'
# Deis
DEIS_CONTROLLER: https://deis.us-west.moz.works
DEIS_USERNAME: circleci
# Docker
QUAY_EMAIL: [email protected]
QUAY_USERNAME: mozmar+circleci
DOCKER_REPOSITORY: quay.io/mozmar/bedrock
DOCKER_IMAGE_TAG: "$DOCKER_REPOSITORY:$CIRCLE_BRANCH"
BASE_DOCKER_REPOSITORY: quay.io/mozmar/bedrock_base
BASE_DOCKER_IMAGE_TAG: "$BASE_DOCKER_REPOSITORY:$CIRCLE_BRANCH"
checkout:
post:
- git submodule sync
- git submodule update --init --recursive
dependencies:
cache_directories:
- node_modules
- "~/docker"
override:
- npm install -g gulp-cli
- npm install
- sudo apt-get update
- sudo apt-get install -y libmemcached-dev
- bin/upgrade-pip.sh
- pip install -r requirements/dev.txt
- pip install -r requirements/prod.txt
- pip install -r requirements/docker.txt
- pip install -r requirements/test.txt
- bin/circleci-demo-sync.sh
test:
pre:
- flake8 bedrock lib tests
- gulp js:lint
- python manage.py runscript check_calendars
- python manage.py version
- python manage.py migrate --noinput
- python manage.py collectstatic --noinput -v 0
- mkdir -p "$CIRCLE_TEST_REPORTS/django"
override:
- gulp js:test
- python manage.py test
- py.test --junitxml="$CIRCLE_TEST_REPORTS/redirects.xml" -r a -m smoke tests/redirects
deployment:
demo:
branch: /demo__.+/
owner: mozilla
commands:
- bin/circleci-demo-deploy.sh
jenkins:
branch: master
owner: mozilla
commands:
- bin/circleci-trigger-jenkins.sh
release:
tag: /\d{4}-\d{2}-\d{2}(\.\d)?/
owner: mozilla
commands:
- bin/circleci-trigger-jenkins.sh