Skip to content

Commit

Permalink
Deploy pyamgcl to PyPI from Travis-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Sep 27, 2014
1 parent 8108a1a commit 4df9e64
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
35 changes: 23 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
language: cpp
compiler:
- clang
- clang
before_install:
- sudo add-apt-repository ppa:boost-latest/ppa -y
- sudo apt-get update -qq
- sudo apt-get install -qq libboost-chrono1.55-dev libboost-date-time1.55-dev libboost-system1.55-dev libboost-filesystem1.55-dev libboost-program-options1.55-dev libboost-python1.55-dev libboost-test1.55-dev python-yaml lcov openmpi-bin libopenmpi-dev python-numpy-dev python-scipy
- gem install coveralls-lcov
- sudo add-apt-repository ppa:boost-latest/ppa -y
- sudo apt-get update -qq
- sudo apt-get install -qq libboost-chrono1.55-dev libboost-date-time1.55-dev libboost-system1.55-dev
libboost-filesystem1.55-dev libboost-program-options1.55-dev libboost-python1.55-dev
libboost-test1.55-dev python-yaml lcov openmpi-bin libopenmpi-dev python-numpy-dev
python-scipy
- gem install coveralls-lcov
script:
- mkdir -p build && cd build
- cmake -DTEST_COVERAGE=ON -DCMAKE_BUILD_TYPE=Release ..
- make && ctest --output-on-failure
- for n in 1 4 16; do echo --- $n ---; mpirun -np $n ./examples/mpi/runtime_sdd; done
- mkdir -p build && cd build
- cmake -DTEST_COVERAGE=ON -DCMAKE_BUILD_TYPE=Release ..
- make && ctest --output-on-failure
- for n in 1 4 16; do echo --- $n ---; mpirun -np $n ./examples/mpi/runtime_sdd; done
after_success:
- lcov --directory tests --base-directory ../amgcl --capture --output-file coverage.info
- lcov --remove coverage.info '/usr*' -o coverage.info
- cd .. && coveralls-lcov build/coverage.info
- lcov --directory tests --base-directory ../amgcl --capture --output-file coverage.info
- lcov --remove coverage.info '/usr*' -o coverage.info
- cd .. && coveralls-lcov build/coverage.info
deploy:
provider: pypi
user: Denis.Demidov
password:
secure: kGRaOaE3EMvkl+WUOeJuyqBA7yJo0+dLrxBEvK4pMF8VQzaDpZGdzdfVyVs5hMDilMp3GTKIpi078gkCXN6l9Zh95Y864fCbYMsOFCPpPBSn5pEOSTkhOCSujYPJzz5qdHzBpD4/aKPS7a91c1Hf+N3fnmWhIqX3x9zpQAKXegg=
on:
tags: true
all_branches: true
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ def write_release_version(version):
def pep386adapt(version):
# adapt git-describe version to be in line with PEP 386
parts = version.split('-')
parts[-2] = 'post'+parts[-2]
version = '.'.join(parts[:-1])
if len(parts) > 1:
parts[-2] = 'post'+parts[-2]
version = '.'.join(parts[:-1])
return version


Expand Down Expand Up @@ -118,7 +119,7 @@ def boost_python_lib():
if find_file("lib" + boost_python, library_dirs):
return boost_python

if _version >= (3, ):
if pyver >= (3, ):
boost_python = "boost_python-py%s%s" % (pyver[0], pyver[1])
if find_file("lib" + boost_python, library_dirs):
return boost_python
Expand Down

0 comments on commit 4df9e64

Please sign in to comment.