Commit 88e49e3d by John Chodera (MSKCC)

Updates to try to get travis to build pdbfixer-dev and push to binstar.

parent 93663581
language: c language: c
env: env:
matrix: matrix:
- CONDA_PY=2.7 - CONDA_PY=2.7
- CONDA_PY=3.3 - CONDA_PY=3.3
- CONDA_PY=3.4 - CONDA_PY=3.4
install: install:
- sudo apt-get update -qq - source devtools/ci/install.sh
- sudo apt-get install -qq python-dev python-pip python-yaml g++ ftp - export PYTHONUNBUFFERED=true
- sudo pip install conda eventlet # - sudo apt-get update -qq
- sudo conda init # - sudo apt-get install -qq python-dev python-pip python-yaml g++ ftp
- conda config --add channels http://conda.binstar.org/omnia # - sudo pip install conda eventlet
- conda create --yes --name test nose setuptools numpy biopython pyflakes openmm-dev # - sudo conda init
- export PATH="$HOME/envs/test/bin/:$PATH" # - conda config --add channels http://conda.binstar.org/omnia
# - conda create --yes --name test nose setuptools numpy biopython pyflakes openmm-dev
# - export PATH="$HOME/envs/test/bin/:$PATH"
script: script:
- python setup.py install # this builds the binary, unpacks it, and runs the tests
- cd tests - conda build devtools/conda-recipe
- nosetests --with-doctest # - python setup.py install
# - cd tests
# - nosetests --with-doctest
after_script: after_script:
- pyflakes pdbfixer/*.py - pyflakes pdbfixer/*.py
after_success:
- echo "after_success"
- bash -x devtools/ci/after_sucess.sh
#!/bin/bash
echo $TRAVIS_PULL_REQUEST $TRAVIS_BRANCH
if [[ "$TRAVIS_PULL_REQUEST" == "true" ]]; then
echo "This is a pull request. No deployment will be done."; exit 0
fi
if [[ "$TRAVIS_BRANCH" != "master" ]]; then
echo "No deployment on BRANCH='$TRAVIS_BRANCH'"; exit 0
fi
if [[ "2.7 3.3" =~ "$python" ]]; then
conda install --yes binstar jinja2
binstar -t $BINSTAR_TOKEN upload --force -u omnia -p pdbfixer-dev $HOME/miniconda/conda-bld/*/pdbfixer-dev-*.tar.bz2
fi
if [[ "$python" != "2.7" ]]; then
echo "No deploy on PYTHON_VERSION=${python}"; exit 0
fi
MINICONDA=Miniconda-latest-Linux-x86_64.sh
MINICONDA_MD5=$(curl -s http://repo.continuum.io/miniconda/ | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p')
wget http://repo.continuum.io/miniconda/$MINICONDA
if [[ $MINICONDA_MD5 != $(md5sum $MINICONDA | cut -d ' ' -f 1) ]]; then
echo "Miniconda MD5 mismatch"
exit 1
fi
bash $MINICONDA -b
PIP_ARGS="-U"
export PATH=$HOME/miniconda/bin:$PATH
sudo apt-get update
sudo apt-get install -qq -y g++ gfortran csh g++-multilib gcc-multilib openbabel
conda update --yes conda
conda config --add channels http://conda.binstar.org/omnia
conda config --add channels https://conda.binstar.org/rdkit
conda install --yes conda-build jinja2 binstar pip
#!/bin/bash
cp -r $RECIPE_DIR/../.. $SRC_DIR
$PYTHON setup.py install
package:
name: pdbfixer-dev
version: dev
requirements:
build:
- python
- setuptools
- openmm
- numpy
run:
- python
- openmm
- numpy
test:
commands:
- nosetests --with-doctest --nocapture
about:
home: http://github.com/simtk/pdbfixer
license: free
summary: PDBFixer fixes problems in PDB files to prepare them for molecular simulation.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment