#!/bin/bash

set -e
set -x

git fetch origin master

MINICONDA="Miniconda3-$MINICONDA_VERSION-Linux-x86_64"
MINICONDA_URL="http://repo.continuum.io/miniconda/$MINICONDA.sh"

wget $MINICONDA_URL
bash $MINICONDA.sh -b -p $HOME/miniconda
rm -rf $MINICONDA.sh

python -V

conda config --set always_yes yes
conda update -q conda
conda info -a

DEPS_TRAVIS="python=$TRAVIS_PYTHON_VERSION conda-build"
conda install --yes $DEPS_TRAVIS

conda config --add channels bioconda
conda config --add channels bokeh
conda config --add channels percyfal

DEPS_TEST=$(cat <<EOF | python -
from conda_build.metadata import MetaData
print(" ".join([s.replace(" ", "") for s in MetaData("conda.recipe").get_value("test/requires")]))
EOF
)
echo $DEPS_TEST

conda install --yes $DEPS_TEST

# Manual install needed
conda install --yes snakemake

conda build conda.recipe --output

echo `pwd`

snakemake -s /home/travis/build/percyfal/snakemake-rules/snakemake_rules/tests/Snakefile -F data/test.sort.bam


#!/bin/bash

set -e
set -x

git fetch origin master

MINICONDA="Miniconda3-$MINICONDA_VERSION-Linux-x86_64"
MINICONDA_URL="http://repo.continuum.io/miniconda/$MINICONDA.sh"

wget $MINICONDA_URL
bash $MINICONDA.sh -b -p $HOME/miniconda
rm -rf $MINICONDA.sh

python -V

conda config --set always_yes yes
conda update -q conda
conda info -a

DEPS_TRAVIS="python=$TRAVIS_PYTHON_VERSION conda-build"
conda install --yes $DEPS_TRAVIS

conda config --add channels bioconda
conda config --add channels bokeh
conda config --add channels percyfal

DEPS_TEST=$(cat <<EOF | python -
from conda_build.metadata import MetaData
print(" ".join([s.replace(" ", "") for s in MetaData("conda.recipe").get_value("test/requires")]))
EOF
)
echo $DEPS_TEST

conda install --yes $DEPS_TEST

# Manual install needed
conda install --yes snakemake

BUILDFILE=`conda build conda.recipe --output`

conda install --yes $BUILDFILE

Install snakemake-rules via local install
Install snakemake-rules via local install
