Skip to content

Commit

Permalink
Merge pull request #24 from lamcw/travis-release
Browse files Browse the repository at this point in the history
Automatic release on travis.
  • Loading branch information
hasindu2008 authored Dec 7, 2018
2 parents d8d6e61 + f518e0e commit 88e32a6
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 41 deletions.
100 changes: 60 additions & 40 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,86 @@
matrix:
language: cpp
compiler: g++

env:
- CUDA_HOME=/usr/local/cuda PATH=${CUDA_HOME}/bin:${PATH}

jobs:
addons:
apt:
packages:
- zlib1g-dev
include:
- language: cpp
compiler: g++
os: linux
- name: "Ubuntu 14 local hts"
dist: trusty
before_install: sudo apt-get install libhdf5-dev zlib1g-dev -y
addons:
apt:
packages:
- libhdf5-dev
script: autoreconf && ./scripts/install-hts.sh && ./configure && make && make test
- language: cpp
compiler:
- g++
- clang++
os: linux
- name: "Ubuntu 16 install scripts"
dist: xenial
before_install: sudo apt-get install libhdf5-dev zlib1g-dev -y
script: autoreconf && ./scripts/install-hts.sh && ./configure && make && make test
- language: cpp
compiler: g++
os: linux
dist: xenial
before_install: sudo apt-get install zlib1g-dev -y
script: autoreconf && ./scripts/install-hdf5.sh 2> /dev/null &&./scripts/install-hts.sh && ./configure --enable-localhdf5 && make && make test
- language: cpp
compiler: g++
- name: "Ubuntu 16 pure make"
os: linux
dist: xenial
before_install: sudo apt-get install zlib1g-dev -y
script: make && make test
- language: cpp
compiler: g++
- name: "OSX local hts"
os: osx
before_install: brew install hdf5
addons:
homebrew:
packages:
- hdf5
script: autoreconf && ./scripts/install-hts.sh && ./configure && make && make test
- language: cpp
compiler: g++
- name: "OSX pure make"
os: osx
script: make && make test
- language: cpp
os: linux
- name: "Ubuntu 14 cuda 7.0"
dist: trusty
before_install:
- sudo apt-get install libhdf5-dev zlib1g-dev -y
addons:
apt:
packages:
- libhdf5-dev
before_script:
- wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb
- sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb
- sudo apt-get update -qq
- sudo apt-get install -y cuda-drivers cuda-core-7-0 cuda-cudart-dev-7-0
- sudo apt-get clean
- sudo ln -s /usr/local/cuda-7.0/ /usr/local/cuda
- CUDA_HOME=/usr/local/cuda/
- PATH=${CUDA_HOME}/bin:${PATH}
- sudo ln -s /usr/local/cuda-7.0/ ${CUDA_HOME}
script: autoreconf && ./scripts/install-hts.sh && ./configure && make cuda=1
- language: cpp
os: linux
- name: "Ubuntu 14 cuda 6.5"
dist: trusty
before_install:
- sudo apt-get install zlib1g-dev -y
before_script:
- wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb
- sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb
- sudo apt-get update -qq
- sudo apt-get install -y cuda-drivers cuda-core-6-5 cuda-cudart-dev-6-5
- sudo apt-get clean
- sudo ln -s /usr/local/cuda-6.5/ /usr/local/cuda
- CUDA_HOME=/usr/local/cuda/
- PATH=${CUDA_HOME}/bin:${PATH}
- sudo ln -s /usr/local/cuda-6.5/ ${CUDA_HOME}
script: make cuda=1

- stage: deploy
name: "GitHub Release"
dist: trusty
before_script:
- wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb
- sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb
- sudo apt-get update -qq
- sudo apt-get install -y cuda-drivers cuda-core-6-5 cuda-cudart-dev-6-5
- sudo apt-get clean
- sudo ln -s /usr/local/cuda-6.5/ ${CUDA_HOME}
script:
- make cuda=1 && mv ./f5c ./f5c_x86_64_linux_cuda && make clean
- make && mv ./f5c ./f5c_x86_64_linux
deploy:
provider: releases
api_key:
secure: KT3XFGJDQaN4EIbjRqAxnNFcG3fpkSFKct32bupVdlTMbzoI2c9oPyYKmUESyJODZML2BAwKV1knXrzhU/8o+vEDmTFdQ5fRNNHP8kcx6RVIZMSsJ+rF2DDl7sitr0rndyPbT97ACbsSZSdRiWK8MKo6YeMUJNkhuBOjXISFl4uiNezK0HeFCepQdWwB8W7De/1kgNQa9ZL6O7deiB+6DDZOVF/jr/YvIxCjytGwhFW6E5/EDHVmTt+9aXRXVgffzq9Ltt5oS30uYfWNJfAsk+81XEnuZ7GUGSyN4N77Xk2cI1LD3E8m1kMHksd34tn0A97nT4CPPI+WoUootzLDh29fUmSDPXbqwCGFDk8FTVUSAuwxZQQAESJrFv9fVl1vWTh3Bj8NkzXAHgmTtaBCxeIUhN+pBX3d7QQMYGpUHGGdIENGpfVi9vnnAYSsYs1foJtfuhw534ejju4laZ0bXVUE0w5AAKEw8H1xA+lS413ugKwAXEX6naFAD6NkZaX3ISSVeewIqtIW6UFCNqt/U++OY9vcwzFDbUq/wEjZtNRLzXzHzaObomRsOKqldje3FxH9p1QIPZXWgLBx8FhdFG6P+Nilhifq7Dcgx1dybKGTWOOurXrPKVgC9bLtXe/49LVMk5TirYtj2gXmlofi1SD52T9HpZVWH9haJ+Rnjso=
file_glob: true
file: "./f5c* ./f5c-*.tar.gz"
skip_cleanup: true
on:
branch: master
repo: hasindu2008/f5c
tags: true
before_deploy:
- make dist
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ OBJ = $(BUILD_DIR)/main.o \
$(BUILD_DIR)/hmm.o

PREFIX = /usr/local
VERSION = 1.0
VERSION = `git describe --tags`

ifdef cuda
DEPS_CUDA = src/f5c.h src/fast5lite.h src/error.h src/f5cmisc.cuh
Expand Down

0 comments on commit 88e32a6

Please sign in to comment.