Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make releases from only one Python version #152

Merged
merged 6 commits into from
Mar 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 21 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
language: python
sudo: false
git:
depth: 1
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
branches:
only:
- master
- devel
- "/^\\d+\\.\\d+\\.\\d+[a]?\\d*$/"
env:
global:
- GITHUB_REPO=biosustain/optlang
- secure: PBcwrLg4ZwVi9Gw25Q2adNd0uK+NCqFSiYl+ZuumkEXs4NQBbSXVd719wrWKUFdIqBy+h9ETo4Vsz/QsTZzI2mSG4zqTkm+oUxMW1tJxYEeKZvCo7GfZ883VlKFgdqvh6iouEvHSjfGbwc5cUp98CbjgI5ni01vGpDQh2hgokkI=
matrix:
- OPTLANG_USE_SYMENGINE=False
- OPTLANG_USE_SYMENGINE=True
matrix:
fast_finish: true
cache:
- pip: true
addons:
apt:
packages:
- swig
- libzmq3-dev
- libgmp-dev
- libglpk-dev
- glpk-utils
- pandoc
before_install:
- export SYMPY_USE_CACHE=no
- pip install pip --upgrade
- 'echo "this is a build for: $TRAVIS_BRANCH"'
- 'if [[ "$TRAVIS_PYTHON_VERSION" != "3.5" ]]; then bash ./.travis/install_cplex.sh; fi'
- 'if [[ "$TRAVIS_PYTHON_VERSION" < "3.5" ]]; then bash ./.travis/install_cplex.sh; fi'
install:
- pip install nose nose-progressive rednose coverage docutils flake8 codecov jsonschema
- pip install -r requirements.txt
- pip install inspyred
- pip install pypandoc
- pip install swiglpk
- pip install scipy
- pip install symengine
- 'if [[ "$OPTLANG_USE_SYMENGINE" = "True" ]]; then pip install symengine; fi'
- python setup.py install
before_script:
- flake8 .
Expand All @@ -43,25 +42,24 @@ after_success:
notifications:
slack:
secure: s8Dj0MFreNwZ3Zhb0+5yJiHPL33JsxLjmoRo8f0ohLdD15L//E4VjkCsYkNEcLzid6HarEL/1JSmzAuGl40fCdLqTAoDRy01shT1zmfWQPXQlaALh5f8ExBAlyDHxKhd/B2SytYu6uhe0WOuxu/oo4c33a7pKhuV1piNcevPZew=
before_deploy:
- pip install twine
- python setup.py sdist bdist_wheel
deploy:
- provider: releases
api_key:
secure: u4aJv+5YoH3gjJpyiVoq33SqKIUtx8LWPp15pIh8hKHmUgJNyjGm7ELXOeczfQ5W7ZpnWj+ogewaes2oA0NLxBB1/MBPL7kr77hmzp+XhZomh73DzFKegbpBTgqpioBRxvPlq3HYNIWqrLkeg/HYlBW1WM6mKifFUwqbIaL+++4=
file_glob: true
file: dist/optlang*.whl
skip_cleanup: true
on:
branch: master
tags: true
repo: biosustain/optlang
repo: $GITHUB_REPO
python: '3.6'
condition: $OPTLANG_USE_SYMENGINE = False
- provider: pypi
skip_cleanup: true
distributions: sdist bdist_wheel
user: Nikolaus.Sonnenschein
password:
secure: Gn23MUvzP1DPJXxRXUOXGBJjyMamawxey5ByrOd+JT90roljHKSk8v1wdBMH7+s1DB/ygUJqB2Zy0cBC3mr0waY6HmxKpXhddgzQzG56Eua/npTxpz58Y8xfSYF+5QqS3gcyBrYEXmeHWuEURERy0b7uYKMx/QcHAHYhTaVy4zE=
on:
branch: master
tags: true
repo: biosustain/optlang
repo: $GITHUB_REPO
python: '3.6'
condition: $OPTLANG_USE_SYMENGINE = False
8 changes: 7 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
branches:
only:
- master
- devel
- "/^\\d+\\.\\d+\\.\\d+[a]?\\d*$/"

environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
Expand All @@ -19,7 +25,7 @@ environment:
PYTHON_VERSION: "3.5.2"
PYTHON_ARCH: "64"

clone_depth: 25
clone_depth: 2

init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%bit"
Expand Down