File tree 5 files changed +35
-44
lines changed
example_project/example_project
5 files changed +35
-44
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ jobs :
3
+ build :
4
+ working_directory : ~/orchestra
5
+ docker :
6
+ - image : python:3.5.2
7
+ steps :
8
+ - checkout
9
+ - run :
10
+ name : Install dependencies
11
+ command : |
12
+ curl -sL https://deb.nodesource.com/setup_7.x | bash - && apt-get install -y nodejs
13
+ npm install -g gulp
14
+ npm install
15
+ # circle has a really old version of pip by default which seems to break
16
+ # builds sometimes.
17
+ pip install --upgrade pip
18
+ pip install -r requirements.txt
19
+ pip install coveralls
20
+ - run :
21
+ name : Run tests
22
+ command : |
23
+ make lint
24
+ make coverage
25
+ make coveralls
26
+ # Circle uses XUnit reports
27
+ mkdir -p $CIRCLE_TEST_REPORTS/python/
28
+ find . -wholename *nosetests.xml -exec mv {} $CIRCLE_TEST_REPORTS/python/ \;
Original file line number Diff line number Diff line change
1
+ 3.5.2
Original file line number Diff line number Diff line change 1
1
COVERAGE_ANNOTATION =coverage_annotations
2
- TEST_CMD =manage.py test orchestra beanstalk_dispatch --with-xunit --parallel=4 -- exclude=assert_test*
2
+ TEST_CMD =manage.py test orchestra beanstalk_dispatch --with-xunit --exclude=assert_test*
3
3
GULP := $(shell command -v gulp 2> /dev/null)
4
4
5
5
clean :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 26
26
# SECURITY WARNING: don't run with debug turned on in production!
27
27
DEBUG = True
28
28
29
- # Determine whether we're running on CircleCI or not
30
- RUNNING_ON_CIRCLE = bool (os .environ .get ('CIRCLE_SHA1' ))
31
-
32
29
# Application definition
33
30
INSTALLED_APPS = (
34
31
'django.contrib.auth' ,
93
90
94
91
# Database
95
92
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
96
- if RUNNING_ON_CIRCLE :
97
- DATABASES = {
98
- 'default' : {
99
- 'ENGINE' : 'django.db.backends.postgresql_psycopg2' ,
100
- 'NAME' : 'circle_test' ,
101
- 'USER' : 'ubuntu' ,
102
- 'PASSWORD' : '' ,
103
- 'HOST' : 'localhost' ,
104
- 'PORT' : '5432' ,
105
- }
106
- }
107
- else :
108
- DATABASES = {
109
- 'default' : {
110
- 'ENGINE' : 'django.db.backends.sqlite3' ,
111
- 'NAME' : 'orchestra.sqlite3' ,
112
- }
93
+ DATABASES = {
94
+ 'default' : {
95
+ 'ENGINE' : 'django.db.backends.sqlite3' ,
96
+ 'NAME' : 'orchestra.sqlite3' ,
113
97
}
98
+ }
114
99
115
100
# Internationalization
116
101
# https://docs.djangoproject.com/en/1.9/topics/i18n/
You can’t perform that action at this time.
0 commit comments