-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
92 lines (85 loc) · 2.62 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#language: python
#
## os:
## - linux
## - osx
#
##python:
## - "3.4"
## - "3.5"
## - "3.6"
## - "nightly"
#
#addons:
# apt:
## sources:
## - sourceline: 'deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse'
## - sourceline: 'deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse'
# packages:
# libglib2.0-dev
# python3-pip
# python3-matplotlib
# python3-dev
# git
# gcc
# g++
#
#before_install:
## - sudo apt-get -qq update
## - sudo apt-get install -y libglib2.0-dev python3-pip python3-matplotlib python3-dev git gcc g++
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install glib python3 openssl readline ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated pyenv || brew upgrade pyenv ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pyenv-virtualenv ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/Users/travis/.pyenv/shims:${PATH}" ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv-virtualenv venv; source venv/bin/activate ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -m pip install -U pip ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -m easy_install -U setuptools ; fi
#
#
## command to install dependencies
#install:
# - pip3 install --upgrade pip setuptools wheel
# - pip3 install -r requirements.txt
# - python3 setup.py build_ext -i
# - which python3
# - python3 --version
#
#matrix:
# include:
# - os: linux
# python: 3.4
# - os: linux
# python: 3.5
# - os: linux
# python: 3.6
# allow_failures:
# - os: linux
# python: "nightly"
## - os: osx
## language: generic
#
#
#
## command to run tests
#script: nosetests
git:
submodules: false
language: python
python:
- "3.4"
- "3.5"
- "3.6"
# - "3.7"
# - "nightly" # currently points to 3.6-dev
before_install:
# Use sed to replace the SSH URL with the public URL, then initialize submodules
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- sudo apt-get -qq update
- sudo apt-get install -y libglib2.0-dev python3-pip python3-matplotlib
# command to install dependencies
install: "pip3 install -r requirements.txt; python3 setup.py build_ext -i"
# command to run tests
script: nosetests