-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
58 lines (48 loc) · 1.13 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
47
48
49
50
51
52
53
54
55
56
57
58
# .travis.yml file for pybooru
# Python version
matrix:
include:
- python: '2.7'
os: linux
language: python
- python: '3.5'
os: linux
language: python
- python: '3.6'
os: linux
language: python
- python: '3.7'
os: linux
language: python
- python: '3.8'
os: linux
language: python
# OSX ENV
- os: osx
osx_image: xcode9.4
env: PYTHON_VERSION=2.7
language: generic
- os: osx
osx_image: xcode9.4
env: PYTHON_VERSION=3.7
language: generic
branches:
- master
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
pip install --user pipenv;
python -m pipenv install --dev --skip-lock;
else
pip install pipenv;
pipenv install --dev --skip-lock;
fi
script:
# Run test script, but at the moment is a provisional test
# TODO: configure pylint properly
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
python -m pipenv run pylint --errors-only pybooru/;
python -m pipenv run python provisional_test.py;
else
pylint --errors-only pybooru/ ;
python provisional_test.py;
fi