Skip to content

Commit 9edc5a0

Browse files
authored
Merge pull request #291 from JakaKokosar/travis_integration
[ENH]Travis integration
2 parents 53e789f + 015d369 commit 9edc5a0

File tree

8 files changed

+73
-12
lines changed

8 files changed

+73
-12
lines changed

.travis.yml

+22-12
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
11
language: python
2-
2+
dist: trusty
33
sudo: false
44

5-
python:
6-
- "3.4"
5+
matrix:
6+
include:
7+
- python: '3.6'
8+
env: ORANGE_INSTALL=conda
9+
- python: '3.6'
10+
env: ORANGE_INSTALL=source
711

812
cache:
913
apt: true
1014
pip: true
15+
ccache: true
1116

12-
addons:
13-
apt:
14-
packages:
15-
- libblas-dev
16-
- liblapack-dev
17-
- gfortran
17+
before_install:
18+
- source $TRAVIS_BUILD_DIR/.travis/install_miniconda.sh
19+
- echo $TRAVIS_PYTHON_VERSION
20+
- conda env create -f conda_environment.yml python=$TRAVIS_PYTHON_VERSION
21+
- source $TRAVIS_BUILD_DIR/.travis/install_orange.sh
22+
- source activate orange3-single-cell
1823

1924
install:
20-
# Update pip to be able to install wheel dependencies
21-
- pip install -U pip wheel
25+
- pip install -U pip wheel coverage codecov
26+
- source $TRAVIS_BUILD_DIR/.travis/install_orange.sh
2227
- pip install -e .
28+
- pip freeze
29+
30+
script:
31+
- catchsegv xvfb-run -a -s "-screen 0 1280x1024x24" coverage run setup.py test
2332

24-
script: python setup.py test
33+
after_success:
34+
- codecov

.travis/install_miniconda.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
# https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html#the-travis-yml-file
4+
5+
# install miniconda
6+
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
7+
bash miniconda.sh -b -p $HOME/miniconda
8+
export PATH="$HOME/miniconda/bin:$PATH"
9+
hash -r
10+
# update miniconda
11+
conda config --set always_yes yes --set changeps1 no
12+
conda update -q conda
13+
conda info -a

.travis/install_orange.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
if [ $ORANGE_INSTALL == "source" ];
4+
then
5+
echo "Orange install for source"
6+
pip install https://github.com/biolab/orange3/archive/master.zip
7+
else
8+
echo "Orange install for conda"
9+
conda install orange3
10+
11+
fi

MANIFEST.in

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ recursive-include orangecontrib/single_cell/tutorials *.ows *.tsv *.mtx *.tab.gz
55
recursive-include orangecontrib/single_cell/launcher/icons *.svg *.png
66
recursive-include orangecontrib/single_cell/widgets/icons *.svg
77

8+
# include test files
9+
recursive-include orangecontrib/single_cell/tests/ *
10+
811
# include meta data
912
include requirements.txt
1013
include README.md

codecov.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
comment:
2+
layout: header, diff, changes, sunburst, uncovered
3+
coverage:
4+
status:
5+
patch:
6+
default:
7+
target: '80'
8+
project:
9+
default:
10+
target: auto

conda_environment.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: orange3-single-cell
2+
3+
channels:
4+
- conda-forge
5+
- bioconda
6+
- defaults
7+
8+
dependencies:
9+
- orange3-bioinformatics==3.2.0
10+
- pandas>=0.23
11+
- fastdtw
12+
- loompy
13+
- networkx

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
PACKAGE_DATA = {
3030
'orangecontrib.single_cell.tutorials': ['*.ows', '*.tsv', '*.mtx', '*.tab.gz', '*.tab'],
31+
'orangecontrib.single_cell.tests': ['*'],
3132
'orangecontrib.single_cell.launcher.icons': ['*.ows', '*.png'],
3233
'orangecontrib.single_cell.widgets.icons': ['*.ows']
3334
}

0 commit comments

Comments
 (0)