forked from wbond/asn1crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (69 loc) · 1.9 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
59
60
61
62
63
64
65
66
67
68
69
sudo: false
language: c
branches:
except:
- /^[0-9]+\.[0-9]+\.[0-9]$/
matrix:
include:
- os: osx
python: "2.6"
env: TRAVIS_PYTHON_VERSION=2.6
- os: osx
python: "2.7"
env: TRAVIS_PYTHON_VERSION=2.7
- os: osx
python: "3.5"
env: TRAVIS_PYTHON_VERSION=3.5
- os: osx
python: "pypy"
env: TRAVIS_PYTHON_VERSION=pypy
- os: linux
language: python
python: "2.6"
- os: linux
language: python
python: "2.7"
- os: linux
language: python
python: "3.2"
- os: linux
language: python
python: "3.3"
- os: linux
language: python
python: "3.4"
- os: linux
language: python
python: "3.5"
- os: linux
language: python
python: "pypy"
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then
brew update;
brew install pypy;
/usr/local/bin/pip_pypy install flake8;
export PYTHON_BIN=/usr/local/bin/pypy;
else
if [ "$TRAVIS_PYTHON_VERSION" == "3.5" ]; then
brew update;
brew install python3;
/usr/local/bin/pip3 install flake8;
export PYTHON_BIN=/usr/local/bin/python3;
else
if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then
curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | sudo /usr/bin/python2.7;
sudo /usr/bin/python2.7 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'flake8'])";
export PYTHON_BIN=/usr/bin/python2.7;
else
export PYTHON_BIN=/usr/bin/python2.6;
fi
fi
fi
else
pip install flake8;
export PYTHON_BIN=python;
fi
script:
- $PYTHON_BIN run.py ci