Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
travis osx
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Oct 22, 2017
1 parent 5b3bba5 commit 877208b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
20 changes: 20 additions & 0 deletions .gitattributes
@@ -0,0 +1,20 @@
.gitattributes text eol=lf
.gitignore text eol=lf
Makefile text eol=lf
*.yml text eol=lf
LICENSE text eol=lf
*.ipynb text eol=lf
*.txt text eol=lf
*.py text eol=lf
*.sh text eol=lf
*.c text eol=lf
*.cpp text eol=lf
*.f text eol=lf
*.f90 text eol=lf
*.for text eol=lf
*.md text eol=lf
*.rst text eol=lf
*.csv text eol=lf
*.m text eol=lf
*.grc text eol=lf
*.pas text eol=lf
25 changes: 13 additions & 12 deletions .travis.yml
@@ -1,35 +1,36 @@
language: python
language: generic

python:
- 3.6
os:
- linux
- osx

os: linux
env:
- TRAVIS_PYTHON_VERSION=3.6

notifications:
email: false
email: false

git:
depth: 3

depth: 3

before_install:
- if [[ $TRAVIS_OS_NAME == osx ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi

install:
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- hash -r

- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda create -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
- pip -q install coveralls

install:
- python setup.py develop

script: coverage run tests/test.py -v
Expand Down

0 comments on commit 877208b

Please sign in to comment.