-
-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
karandesai-96
committed
Apr 3, 2016
1 parent
17a06a8
commit d705e2e
Showing
1 changed file
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# This references the default Python container from | ||
# the Docker Hub with the 2.7 tag: | ||
# https://registry.hub.docker.com/_/python/ | ||
# If you want to use a slim Python container with | ||
# version 3.4.3 you would use: python:3.4-slim | ||
# If you want Google's container you would reference google/python | ||
# Read more about containers on our dev center | ||
# http://devcenter.wercker.com/docs/containers/index.html | ||
box: python:2.7 | ||
# You can also use services such as databases. Read more on our dev center: | ||
# http://devcenter.wercker.com/docs/services/index.html | ||
# services: | ||
# - postgres | ||
# http://devcenter.wercker.com/docs/services/postgresql.html | ||
|
||
# - mongodb | ||
# http://devcenter.wercker.com/docs/services/mongodb.html | ||
|
||
# This is the build pipeline. Pipelines are the core of wercker | ||
# Read more about pipelines on our dev center | ||
# http://devcenter.wercker.com/docs/pipelines/index.html | ||
build: | ||
# The steps that will be executed on build | ||
# Steps make up the actions in your pipeline | ||
# Read more about steps on our dev center: | ||
# http://devcenter.wercker.com/docs/steps/index.html | ||
steps: | ||
# A step that sets up the python virtual environment | ||
- virtualenv: | ||
name: setup virtual environment | ||
install_wheel: false # Enable wheel to speed up builds (experimental) | ||
|
||
# # Use this virtualenv step for python 3.2 | ||
# - virtualenv | ||
# name: setup virtual environment | ||
# python_location: /usr/bin/python3.2 | ||
|
||
# # This pip-install clears the local wheel cache | ||
# - pip-install: | ||
# clean_wheel_dir: true | ||
|
||
# A custom script step, name value is used in the UI | ||
# and the code value contains the command that get executed | ||
- script: | ||
name: environment variables | ||
code: | | ||
export COMPILER='gcc' | ||
export PANDAS_VERSION=0.16 | ||
export ASTROPY_USE_SYSTEM_PYTEST=1 | ||
export SETUP_CMD='test' | ||
export TEST_MODE='normal' | ||
export ATOM_DATA_URL='http://www.mpa-garching.mpg.de/~michi/tardis/data/kurucz_cd23_chianti_H_He.zip' | ||
- script: | ||
name: before-install | ||
code: | | ||
echo "python version $(python --version) running" | ||
echo "pip version $(pip --version) running" | ||
export PYTHONIOENCODING=UTF8 | ||
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh | ||
chmod +x miniconda.sh | ||
bash miniconda.sh -b -p $HOME/miniconda | ||
export PATH=$HOME/miniconda/bin:$PATH | ||
hash -r | ||
conda update --yes conda | ||
if [[ $TEST_MODE == 'spectrum' ]]; then wget $ATOM_DATA_URL; fi | ||
if [[ $TEST_MODE == 'spectrum' ]]; then unzip kurucz_cd23_chianti_H_He.zip; fi | ||
if [[ $TEST_MODE == 'spectrum' ]]; then mv kurucz_cd23_chianti_H_He.h5 $HOME/; fi | ||
- script: | ||
name: install | ||
code: | | ||
conda create --yes -n tardis-travis --file conda-requirements pip python=2.7 | ||
source activate tardis-travis | ||
if [[ $SETUP_CMD == 'test --coverage' ]]; then pip install -q coveralls; fi | ||
if [[ $SETUP_CMD == 'test --coverage' ]]; then conda install --yes coverage=3.7; fi | ||
if [[ $SETUP_CMD == 'test --coverage' ]]; then pip install -q pytest-cov; fi | ||
- script: | ||
name: run tests | ||
code: | | ||
echo CC=$COMPILER python setup.py $SETUP_CMD | ||
CC=$COMPILER python setup.py $SETUP_CMD | ||