-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
26 lines (26 loc) · 834 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
machine:
python:
version: 3.5.0
dependencies:
override:
- pip install -r ./falcon/rest-api-example/requirements.txt
- |
uwsgi \
--master \
--http :3031 \
--wsgi app:application \
--python-path /home/ubuntu/rest-api/falcon/rest-api-example/ \
--processes 2 \
--daemonize /home/ubuntu/rest-api/falcon/uwsgi.log
database:
post:
# - mysql -e "CREATE USER '$MYSQL_USER' IDENTIFIED BY '$MYSQL_PASSWORD'"
- mysql -e "CREATE DATABASE $MYSQL_DATABASE"
- mysql -e "GRANT ALL PRIVILEGES ON $MYSQL_DATABASE.* TO '$MYSQL_USER'@'$MYSQL_HOST' IDENTIFIED BY '$MYSQL_PASSWORD'"
- mysql exampledb < $HOME/$CIRCLE_PROJECT_REPONAME/create_exampledb.sql
test:
override:
- pwd
- ip a
- py.test /home/ubuntu/rest-api/falcon/test/test_hello.py
- exit 0