forked from Neitsch/ASE4156
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (34 loc) · 980 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
cache:
- pip
- yarn
python:
- "3.6"
addons:
firefox: "latest"
apt:
packages:
- libssl-dev
- build-essential
services:
- postgresql
before_install:
- wget https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.19.0-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- psql -c 'create database travis_ci_test;' -U postgres
- ./manage.py migrate
- nvm install node && nvm use node && npm i -g yarn
install:
- pip install -r requirements.txt
- pip install flake8 pylint pylint_django
- yarn install
script:
- flake8 .
- find . ! -path "./node_modules/*" ! -path "./env/*" ! -path "*/migrations/*" ! -path "*/snapshots/*" -iname "*.py" | xargs pylint --load-plugins pylint_django
- yarn run test -- --ci
- pytest --driver Firefox