Skip to content
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
8 changes: 6 additions & 2 deletions .travis.setup → .travis.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_8.0.44-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_8.0.44-1_amd64.deb
sudo apt-get update
sudo apt-get install -y --no-install-suggests --no-install-recommends g++-5 python3-dev python3-numpy cuda-cudart-dev-8-0 cuda-core-8-0 cuda-misc-headers-8-0 cuda-curand-dev-8-0
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo apt-get install -y --no-install-suggests --no-install-recommends \
g++-5 cuda-cudart-dev-8-0 cuda-core-8-0 cuda-misc-headers-8-0 cuda-curand-dev-8-0 \
python-numpy autoconf
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5
wget https://github.com/NixOS/patchelf/archive/0.9.zip && unzip 0.9.zip
cd patchelf-0.9/ && ./bootstrap.sh && ./configure && make && sudo make install && cd ..
57 changes: 48 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,56 @@
language: cpp
dist: trusty
sudo: required

before_install:
- . .travis.setup
env:
- CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-8.0

before_script:
- mkdir build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-8.0 ..
_install: &_install
- . .travis.install
- pip install numpy auditwheel==1.5 setuptools twine
- python3 setup.py bdist_wheel

_deploy: &_deploy
provider: script
script:
- auditwheel repair -w dist dist/*
- twine upload dist/*manylinux* -u $PYPI_LOGIN -p $PYPI_PASS
skip_cleanup: true
on:
tags: true

matrix:
include:
- language: cpp
install:
- . .travis.install
- mkdir build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCUDA_TOOLKIT_ROOT_DIR=$CUDA_TOOLKIT_ROOT_DIR ..
- make -j2
script: skip
- language: python
python: 3.4
install: *_install
script: skip
deploy:
provider: script
script:
- auditwheel repair -w dist dist/*
- twine upload dist/*manylinux* -u $PYPI_LOGIN -p $PYPI_PASS
skip_cleanup: true
on:
tags: true
- language: python
python: 3.5
install: *_install
script: skip
deploy: *_deploy
- language: python
python: 3.6
install: *_install
script: skip
deploy: *_deploy

script:
- make -j2 VERBOSE=1

notifications:
email: false