forked from KoalixSwitzerland/koalixcrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (30 loc) · 969 Bytes
/
.travis.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
27
28
29
30
31
32
33
34
35
36
language: python
python:
- '3.4'
env:
- MOZ_HEADLESS=1
addons:
firefox: latest
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver*.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
install:
- python setup.py install
- pip install -r requirements/heroku_requirements.txt
script:
- pytest --cov=koalixcrm --cov-branch --cov-report xml --cov-report term -m "not version_increase"
- python-codacy-coverage -r coverage.xml
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then pytest -m version_increase; fi
# Deployment
deploy:
provider: heroku
api_key:
secure: $HEROKU_API_KEY
app: koalix-crm
on:
repo: scaphilo/koalixcrm
run:
- "python manage.py collectstatic --settings=projectsettings.settings.heroku_settings --noinput"
- "python manage.py migrate --settings=projectsettings.settings.heroku_settings"