Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added initial support Travis CI #20

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Based on astrofrog/example-travis-conda

language: python

matrix:
include:

- python: "3.7"
dist: xenial
sudo: true

before_install:

# Here we just install Miniconda, which you shouldn't have to change.
# Use below for python 2 (and miniconda2 in the PATH)
# http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh

- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes conda

install:

# We just set up a conda environment with the right Python version. This
# should not need changing.

- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test

# Below, dependemcies are collected from the requirements.txt file.
# Note: if one requirement fails - the rest will fail - but that ok for now.

- conda install --yes --file requirements.txt

# You can also install some dependencies with pip if not available in conda

# - pip install ...

script:

- python -m pytest nemweb/tests/
8 changes: 5 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pandas==0.22.0
requests==2.18.4
setuptools==36.5.0
pandas>=0.22.0
requests>=2.18.4
setuptools>=36.5.0
sqlite>=3.26.0
pytest>=4.0.2