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

Commit

Permalink
travis-template
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 14, 2017
1 parent b847e74 commit eecf808
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .codeclimate.yml
@@ -0,0 +1,2 @@
languages:
python: true
38 changes: 10 additions & 28 deletions .travis.yml
@@ -1,19 +1,19 @@
language: generic
language: python
fast_finish: true

python:
- 3.6

os:
- linux
- osx

dist: trusty
group: edge

env:
- FC=gfortran TRAVIS_PYTHON_VERSION=3

notifications:
email: false

git:
depth: 3

Expand All @@ -23,29 +23,11 @@ addons:
- gfortran

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

- 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:
- pip install -e .

script:
- coverage run tests/test.py -v
- pip -q install coveralls

install: pip -q install -e .

script: coverage run tests/test.py -v

after_success: coveralls

7 changes: 7 additions & 0 deletions README.rst
@@ -1,9 +1,16 @@
.. image:: https://zenodo.org/badge/36744637.svg
:target: https://zenodo.org/badge/latestdoi/36744637

.. image:: https://travis-ci.org/scivision/reesaurora.svg
:target: https://travis-ci.org/scivision/reesaurora

.. image:: https://coveralls.io/repos/scivision/reesaurora/badge.svg?branch=master
:target: https://coveralls.io/github/scivision/reesaurora?branch=master

.. image:: https://api.codeclimate.com/v1/badges/fae4ee1dfb20a766ebce/maintainability
:target: https://codeclimate.com/github/scivision/reesaurora/maintainability
:alt: Maintainability


==========
ReesAurora
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
@@ -0,0 +1,6 @@
[build-system]
requires = ["setuptools", "wheel",
'python-dateutil','nose','pytz','numpy','scipy','xarray',
'msise00','gridaurora','glowaurora',
'matplotlib','seaborn',
"nose"]
5 changes: 3 additions & 2 deletions setup.py
@@ -1,8 +1,8 @@
#!/usr/bin/env python
req = ['python-dateutil','nose','pytz','numpy','scipy','xarray','h5py','astropy','matplotlib','seaborn',
req = ['python-dateutil','nose','pytz','numpy','scipy','xarray',
'msise00','gridaurora','glowaurora']
# %%
from setuptools import setup # enables develop
from setuptools import setup

setup(name='reesaurora',
packages=['reesaurora'],
Expand All @@ -19,4 +19,5 @@
'Programming Language :: Python',],
install_requires=req,
python_requires='>=3.6',
extras_require={'plot':['matplotlib','seaborn'],},
)

0 comments on commit eecf808

Please sign in to comment.