From 3af3cacdefb5ff75a9af3502a2332b3be5b2514a Mon Sep 17 00:00:00 2001 From: aqreed Date: Tue, 27 Aug 2019 01:14:39 +0200 Subject: [PATCH] added travis config file and added travis and codecov badges to readme file --- .travis.yml | 34 ++++++++++++++++++++++++++++++++++ README.rst | 8 ++++++++ 2 files changed, 42 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f422cef --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +language: python + +python: + - "3.6" + +branches: + only: + - master + +before_install: + # http://conda.pydata.org/docs/travis.html + - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh + - 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 + + # Useful for debugging any issues with conda + - conda info -a + - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION + - source activate test-environment + - conda install numpy scipy + - pip install coverage pytest pytest-cov codecov + +install: + - pip install -e . + +script: + - pytest + +after_success: + - pytest --cov + - codecov diff --git a/README.rst b/README.rst index 9833179..502d46a 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,14 @@ .. image:: doc/source/_static/logo.png :align: center +.. image:: https://img.shields.io/travis/AeroPython/scikit-aero?style=for-the-badge + :target: https://travis-ci.org/AeroPython/scikit-aero/ + :alt: Build + +.. image:: https://img.shields.io/codecov/c/github/AeroPython/scikit-aero/master?style=for-the-badge + :target: https://codecov.io/gh/AeroPython/scikit-aero + :alt: Coverage + .. image:: https://img.shields.io/maintenance/yes/2019.svg?style=for-the-badge :target: https://github.com/AeroPython/scikit-aero :alt: Maintenance