1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
language: python
sudo: false
git:
depth: 2
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
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'
install:
- pip install nose nose-progressive rednose coverage docutils flake8 codecov jsonschema
- pip install -r requirements.txt
- pip install scipy
- 'if [[ "$OPTLANG_USE_SYMENGINE" = "True" ]]; then pip install symengine; fi'
- python setup.py install
before_script:
- flake8 .
script: nosetests
after_success:
- codecov
notifications:
slack:
secure: s8Dj0MFreNwZ3Zhb0+5yJiHPL33JsxLjmoRo8f0ohLdD15L//E4VjkCsYkNEcLzid6HarEL/1JSmzAuGl40fCdLqTAoDRy01shT1zmfWQPXQlaALh5f8ExBAlyDHxKhd/B2SytYu6uhe0WOuxu/oo4c33a7pKhuV1piNcevPZew=
deploy:
- provider: releases
api_key:
secure: u4aJv+5YoH3gjJpyiVoq33SqKIUtx8LWPp15pIh8hKHmUgJNyjGm7ELXOeczfQ5W7ZpnWj+ogewaes2oA0NLxBB1/MBPL7kr77hmzp+XhZomh73DzFKegbpBTgqpioBRxvPlq3HYNIWqrLkeg/HYlBW1WM6mKifFUwqbIaL+++4=
skip_cleanup: true
on:
tags: true
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:
tags: true
repo: $GITHUB_REPO
python: '3.6'
condition: $OPTLANG_USE_SYMENGINE = False
|