-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
40 lines (35 loc) · 1.08 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
notifications:
email: false
env:
global:
- TEST_DEPENDS="chompack"
matrix:
include:
- os: linux
dist: trusty
sudo: required
language: python
python: '2.7'
- os: linux
dist: trusty
sudo: required
language: python
python: '3.6'
- os: osx
language: python
env: PYVERSION=2.7
language: generic
- os: osx
language: python
env: PYVERSION=3.6
language: generic
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask uninstall oclint; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;bash miniconda.sh -b -p $HOME/miniconda; export PATH="$HOME/miniconda/bin:$PATH" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then conda create -y -n myenv python=$PYVERSION && source $HOME/miniconda/bin/activate myenv; fi
install:
- python setup.py -q install
script:
- pip install $TEST_DEPENDS
- python example.py