forked from saleor/saleor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (50 loc) · 915 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
dist: xenial
language: python
sudo: false
python:
- "3.6"
- "3.7"
cache:
pip: true
directories:
- node_modules
- $HOME/.cache/pip
install:
- pip install -U pip setuptools wheel
- pip install tox-travis
- >
if [ ! -z "$DJANGO" ]; then
nvm install 10 \
&& npm i \
&& npm run build-assets --production \
&& npm run build-emails
fi
script:
- >
if [ ! -z "$DJANGO" ]; then
npm run test
fi
- tox
env:
global:
- DATABASE_URL="postgres://postgres@localhost:5432/saleor"
- SECRET_KEY="irrelevant"
matrix:
- DJANGO="2.2"
- DJANGO="master"
matrix:
fast_finish: true
include:
- env: TOXENV=black
python: "3.6"
- env: TOXENV=flake8
python: "3.6"
allow_failures:
- python: "3.6"
env: DJANGO="master"
- python: "3.7"
env: DJANGO="master"
services:
- postgresql
addons:
postgresql: 9.4