setup travis with pipenv.
This commit is contained in:
parent
f1a7ba9908
commit
0ea38e18a7
23
.travis.yml
23
.travis.yml
|
@ -1,14 +1,27 @@
|
|||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.6"
|
||||
sudo: false
|
||||
install: "pip install -r requirements.txt"
|
||||
script: "python -m unittest discover"
|
||||
install:
|
||||
- pip install pipenv
|
||||
- pipenv install --dev --three
|
||||
script:
|
||||
- flask test
|
||||
addons:
|
||||
postgresql: "9.3"
|
||||
postgresql: "9.6"
|
||||
services:
|
||||
- redis-server
|
||||
before_script:
|
||||
- psql -c 'create database formspree_test;' -U postgres
|
||||
env:
|
||||
- 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
|
||||
- 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
|
||||
|
|
Loading…
Reference in New Issue