-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
52 lines (43 loc) · 922 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
sudo: required
dist: trusty
addons:
apt:
packages:
- net-tools
- openvpn
postgresql: "9.4"
services:
- docker
- postgresql
language: python
python:
- "3.6"
env:
- DJANGO_SETTINGS_MODULE=conf.settings.testing DATABASE_USER=postgres DATABASE_PASSWORD="" DATABASE_HOST="127.0.0.1" DEFAULT_FROM_EMAIL="webmaster@localhost"
before_install:
- docker-compose pull
- docker-compose up -d elasticsearch redis minio
- docker-compose ps
install:
- pip install -r requirements/testing.txt
- nvm install v7.4.0
- nvm use v7.4.0
- npm install
script:
- npm run jsc
- scripts/tests.sh
- scripts/pylint.sh --full
- scripts/pycodestyle.sh
after_success:
- coveralls
deploy:
- skip_cleanup: true
provider: script
script: scripts/deploy/run_deploy.sh testing
on:
branch: master
- skip_cleanup: true
provider: script
script: scripts/deploy/run_deploy.sh staging
on:
tags: true