Skip to content

Commit

Permalink
Merge pull request #43 from conda-forge/moving_ahead
Browse files Browse the repository at this point in the history
Added travis testing.
  • Loading branch information
pelson committed Jan 12, 2016
2 parents c90f49d + 50ec496 commit 7474c0c
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 44 deletions.
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# The language in this case has no bearing - we are going to be making use of conda for a
# python distribution for the scientific python stack.
language: python

sudo: false

env:
global:
- CONDA_INSTALL_LOCN="${HOME}/conda"

matrix:
- PYTHON=2.7
# - PYTHON=3.5 (requires ruamel.yaml to exist for py35)

install:
- mkdir -p ${HOME}/cache/pkgs
- "[ ! -f ${HOME}/cache/miniconda.sh ] && wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ${HOME}/cache/miniconda.sh || :"
- bash ${HOME}/cache/miniconda.sh -b -p ${CONDA_INSTALL_LOCN} && export PATH=${CONDA_INSTALL_LOCN}/bin:$PATH

# Re-use the pacakges in the cache, and download any new ones into that location.
- rm -rf ${CONDA_INSTALL_LOCN}/pkgs && ln -s ${HOME}/cache/pkgs ${CONDA_INSTALL_LOCN}/pkgs

# Now do the things we need to do to install it.
- conda install --file requirements.txt nose python=${PYTHON} --yes --quiet -c conda-forge
- python setup.py install

script:
- nosetests conda_smithy


# We store the files that are downloaded from continuum.io, but not the environments that are created.
cache:
directories:
- $HOME/cache
before_cache:
# Remove all untarred directories.
- find $CONDA_INSTALL_LOCN/pkgs/ -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Overview
+ Register the repo on github and push it.
+ Connect the repo to the CI services travis-ci.org, appveyor.com, circleci.com

[![Build Status](https://travis-ci.org/conda-forge/conda-smithy.svg)](https://travis-ci.org/conda-forge/conda-smithy)

Installation
------------

Expand Down
1 change: 0 additions & 1 deletion conda_smithy.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ requirements:
- gitpython
- pygithub <2
- ruamel.yaml
- ruamel.ordereddict

test:
commands:
Expand Down
42 changes: 0 additions & 42 deletions conda_smithy/tests/test_configure_feedstock.py

This file was deleted.

13 changes: 12 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
# Please see conda_smithy.recipe/meta.yaml for the canonical runtime requirements.
# This list is duplicated in the conda_smithy.recipe/meta.yaml.

conda-build-all
setuptools
conda
conda-build
jinja2
requests
pycrypto
gitpython
pygithub <2
ruamel.yaml

0 comments on commit 7474c0c

Please sign in to comment.