Skip to content

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 e970697 commit a44cd55
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
language: python

python:
- 3.6
language: generic

os:
- linux
- osx

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 http://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget http://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
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Programming Language :: Python :: 3.6',
],
extras_requires={'themisasi':['themisasi']}
extras_requires={'themisasi':['themisasi']},
install_requires=req+pipreq,
)


0 comments on commit a44cd55

Please sign in to comment.