-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
54 lines (44 loc) · 1.56 KB
/
README
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
development:
install:
- virtualenv env --no-site-packages
- pip install -r requirements.txt
- python manage.py syncdb
test:
- python manage.py test rest_api
run:
- python manage.py runserver
- python manage.py celeryd -l info -E
- python manage.py celerycam --frequency=3.0
tests:
install:
- sudo apt-get install postgresql
- sudo apt-get install libpq-dev
- change authentication to trust on postgres user and local connections
- sudo service postgresql restart
- createuser -U postgres tests
- psql -U postgres -c "alter user tests with PASSWORD 'tests';"
- createdb -U tests rest_api
- virtualenv env --no-site-packages
- pip install -r requirements_tests.txt
- python manage.py syncdb --settings=settings_tests
test:
- python manage.py test rest_api --settings=settings_tests
run:
- python manage.py run_gunicorn --workers=2 --settings=settings_tests --log-level=DEBUG
- python manage.py celeryd -l info -E -P eventlet -c 10 --settings_tests
- python manage.py celerycam --frequency=3.0 --settings=settings_tests
production:
- install:
- sudo pip install dotcloud
- #ADD
- #ADD
- #ADD
testing_load:
install:
- sudo easy_intall -U ez_setup
- sudo easy_intall -U funkload
run:
- cd rest_api/load_tests
- fl-run-test test_name.py
- fl-run-bench test_name.py Name.test_name
- fl-build-report --html name-bench.xml