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

Template framework for CI with travis + conda #15

Merged
merged 7 commits into from
Oct 3, 2018
Merged
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
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[report]
omit =
*/python?.?/*
*/site-packages/nose/*
*__init__*
exclude_lines =
if __name__ == .__main__.:
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# what language the build will be configured for
language: python

# specify what versions of python will be used
# note that all of the versions listed will be tried
python:
- 3.6

# what branches should be evaluated
branches:
only:
- master

# list of commands to run to setup the environment
install:
- sudo apt-get update
- 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
- conda info -a
- conda env create -f environment.yml
- source activate ecsopendata
- conda install coverage
- conda install coveralls
- conda install flake8

# a list of commands to run before the main script
before_script:
- flake8 ecsopendata

# the actual commands to run
script:
- coverage run -m unittest discover

# generate a coverage report to send to back to user
after_success:
- coverage report
- coveralls
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### This is a work in progress demostration for a combined data management engine

[![Build Status](https://travis-ci.org/ECSHackWeek/ECSOpenData.svg?branch=master)](https://travis-ci.org/ECSHackWeek/ECSOpenData)

#### To setup the `conda` environment to run the Flask application:
```
conda env create -f environment.yml
Expand Down
58 changes: 10 additions & 48 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,13 @@ channels:
- conda-forge
- defaults
dependencies:
- asn1crypto=0.24.0=py37_3
- babel=2.6.0=py_1
- blinker=1.4=py_1
- ca-certificates=2018.8.24=ha4d7672_0
- certifi=2018.8.24=py37_1001
- cffi=1.11.5=py37h5e8e0c9_1
- cryptography=2.3=py37hdffb7b8_0
- cryptography-vectors=2.3=py37_1
- flask-babelex=0.9.3=py_1
- flask-login=0.4.1=py_0
- flask-mail=0.9.1=py_2
- flask-principal=0.4.0=py_1
- flask-script=2.0.6=py_0
- flask-security=3.0.0=py_0
- flask-wtf=0.14.2=py_1
- idna=2.7=py37_2
- openssl=1.0.2p=h470a237_0
- passlib=1.7.1=py_0
- pycparser=2.19=py_0
- pytz=2018.5=py_0
- six=1.11.0=py37_1
- speaklater=1.3=py_3
- argon2_cffi=18.3.0=py37h1de35cc_0
- bcrypt=3.1.4=py37h1de35cc_0
- click=6.7=py37_0
- flask=1.0.2=py37_1
- itsdangerous=0.24=py37_1
- jinja2=2.10=py37_0
- libcxx=4.0.1=h579ed51_0
- libcxxabi=4.0.1=hebd6815_0
- libedit=3.1.20170329=hb402a30_2
- libffi=3.2.1=h475c297_4
- markupsafe=1.0=py37h1de35cc_1
- ncurses=6.1=h0a44026_0
- pip=10.0.1=py37_0
- python=3.7.0=hc167b69_0
- readline=7.0=h1de35cc_5
- setuptools=40.2.0=py37_0
- sqlite=3.25.2=ha441bb4_0
- tk=8.6.8=ha441bb4_0
- werkzeug=0.14.1=py37_0
- wheel=0.31.1=py37_0
- wtforms=2.2.1=py37_0
- xz=5.2.4=h1de35cc_4
- zlib=1.2.11=hf3cbc9b_2
- sqlalchemy=1.2.12=py37h1de35cc_0
prefix: /Users/matt/miniconda3/envs/ecsopendata

- python=3.7
- flask-admin
- flask-login
- flask-mail
- flask-principal
- flask-script
- flask-security
- flask-wtf
- flask
- pandas