2015-01-31 13:37:42 +00:00
|
|
|
language: python
|
|
|
|
python:
|
2018-05-12 15:34:41 +00:00
|
|
|
- "3.6"
|
2016-02-13 20:31:54 +00:00
|
|
|
sudo: false
|
2018-05-12 15:34:41 +00:00
|
|
|
install:
|
|
|
|
- pip install pipenv
|
|
|
|
- pipenv install --dev --three
|
|
|
|
script:
|
2018-05-13 05:00:23 +00:00
|
|
|
- export FLASK_APP=formspree
|
2018-05-12 15:34:41 +00:00
|
|
|
- flask test
|
2016-02-13 20:31:54 +00:00
|
|
|
addons:
|
2018-05-12 15:34:41 +00:00
|
|
|
postgresql: "9.6"
|
2016-06-11 02:56:24 +00:00
|
|
|
services:
|
|
|
|
- redis-server
|
2016-02-13 20:31:54 +00:00
|
|
|
before_script:
|
|
|
|
- psql -c 'create database formspree_test;' -U postgres
|
2015-01-31 13:44:10 +00:00
|
|
|
env:
|
2018-05-13 05:00:23 +00:00
|
|
|
- FLASK_APP=formspree TESTING=true REDISTOGO_URL=0.0.0.0:6379 REDIS_URL='redis://h:@localhost:6379' RATE_LIMIT='120 per hour' TEST_DATABASE_URL=postgres:///formspree_test NONCE_SECRET='y0ur_n0nc3_s3cr3t' SECRET_KEY='y0ur_s3cr3t_k3y' HASHIDS_SALT=doesntmatter STRIPE_TEST_PUBLISHABLE_KEY=pk_test_XebfAaLvLpHeO2txAgqWgJPf STRIPE_TEST_SECRET_KEY=sk_test_MLGQEdAHgWy4Rces4khaIxuc PIPENV_VENV_IN_PROJECT=1
|