-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.6 KB
/
.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
37
38
39
40
41
42
43
44
45
46
dist: trusty
language: python
python:
- '3.4'
- '3.5'
rvm:
- 2.0
sudo: false
cache:
directories:
- "$HOME/.cache/pip"
services:
- postgresql
- redis-server
env:
matrix:
- PRODUCTION=TRUE
global:
- secure: fQVrTJV4FyBcRihbrd+MSvWtYHVFLXeX1uTOINZx121k88k1yyH6Qnh2cYpouMfXdTFMc4negTr3ceNqtljVD1za8Q6jWKk0Ht6MWTuDMb/4mynTKn7qufGe0+scJDueofeBymXthEXbRzh1O+1qEmVkxZUwoKCYXIb6Uk2KSeU=
- secure: BT+ndG5VAs3UxdrF7dTx7MK6SACHG8lf9ABfcAD1FgMi+gccT+R3b6FiQ6AcBn4P+1FqHnoxrOEL4PsxPBAUVLf+wjynOXBMI6Ee+bmUfqLvcP1WwCRK3WhSZpH5lSUr7TCxkGFX7ROOJLnqPScTgQhiWHbCzwV9RcAwHaKj1PM=
- secure: KmWCQvt6IJh5VAAVuIongjTyLSnsc2QlEOQgmSCAigFjo+qwkeatisho05vCD9nhnqRtEOKFnnPwr/es4uKNUMAVKEqs2N0a2ytBL0jVr4obTTUdUQiaGUxOST5HdaiZY9urDECtwBgXogGImTTG6XdFzi9ah3mmmw5lfMIu+3Y=
install:
- gem install sass
- pip install -U pip setuptools
- pip install -U coveralls flake8 codacy-coverage -r requirements.txt
before_script:
- cp intranet/settings/travis_secret.py intranet/settings/secret.py
- psql -U postgres -c 'create database ion'
script:
- flake8 --max-line-length 150 --exclude=*/migrations/* .
- coverage run ./setup.py test
- coverage run -a ./manage.py migrate
- "./manage.py collectstatic --noinput -v 0"
- "./scripts/build_docs.sh"
# - "./scripts/mypy.sh"
after_success:
- "./scripts/push_docs.sh"
- coverage xml
- python-codacy-coverage -r coverage.xml
- coveralls
notifications:
irc:
channels: chat.freenode.net#tjcsl-ion
skip_join: true
slack:
secure: Hvf44pv4xSFknbLt3G1wPec+FTG2K1fP3DBJeb5Edrc7UBTV1J+49JfoQnYyO3F/VnE3jny1xuo/JMKckPhqntYourdNaqm2F+F+FAVVp+OjwxSDv71CbeMp1BRHt7e9w1l2kVEYE79gPyAOeKeiouHyjbaXTTgXDtnvOhCHS7Q=