-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
68 lines (61 loc) · 2.26 KB
/
.travis.yml
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
66
67
68
dist: trusty
sudo: false
language: cpp
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- gcc-7
- g++-7
- help2man
- libgsl0-dev
- doxygen
- graphviz
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-7" CC="gcc-7"; fi
# install conda to install build requirements
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- "./miniconda.sh -b"
- export CONDA_PATH=$HOME/miniconda3
- export PATH=$CONDA_PATH/bin:$PATH
- conda update --yes conda
- conda install --yes -c bioconda -c conda-forge viennarna t_coffee binutils clang
# don't use libc++ with clang---for now
# - if [ "$CXX" == "clang++" ]; then export CXXFLAGS="--stdlib=libc++" ; fi
- if [ "$CXX" == "clang++" ]; then export LDFLAGS="-fopenmp=libgomp"; fi
before_script:
- autoreconf -i
script:
- ./configure --with-vrna=${CONDA_PATH}
- make -j${CPU_COUNT}
- make -j${CPU_COUNT} check
before_deploy:
- make dist-gzip
- make dist-zip
- make doxygen-doc
- export DIST_GZIP=$(ls locarna-*.tar.gz)
- export DIST_ZIP=$(ls locarna-*.zip)
- export DOC_GZIP=${DIST_GZIP/locarna/locarna-doxy}
- tar czf ${DOC_GZIP} Doxy
- echo "Deploying API-Doc, Changelog and autoconf's dists (${DIST_GZIP} and ${DIST_ZIP}) to GitHub releases"
deploy:
provider: releases
api_key:
secure: rHvVz0u8eLMD/m95NscWxqrvQJcwzoWqDU2FVg0toURBjzsPCYa/7t4s1Pu26ycCXW9fOc2UEJhQ60AVHuMFIM9n7EFJEqygZPZXs+Is6lFlQXphN8frWa2xb7gi25LvxH/mnd+XWIZdCTUT7us1rk9msXn48y7S9sR4qSIq8ibwB/5ZwtGCR9fybfdx4mhkIloUTGKjSslsFpwTjVLx/Ch1F3yULANMvaS8gwS7pE0d4Ci6HPFO7vi7QRtGJmtmeSvm+pNpriZ7oe/YUA+EWMWDRKyJQI2diM0j+V2YLcNB60Z2BO0L5My8Gre++pIwSgjd+uTy/p7Nwy8w8BT6LKSlwHwAM/lPd8JAzGoN+yBKEHUwJcnIfeGbG5RVgSNFn+8SOsECvy15JncMb+1rFLp3GrTCJhV+JSU6zvFLMZ9LzlKB8ARKZd9DrSW39zDWO6HRO53HMM6M5hjWV+msGYexQjmqRSc/U8nxYwtNziVJy2ndbp40eZnMMF9J8vMy/sWQy1U44amcIj+J+N8jc9rfIRx3/R559udCgYx+Tpn6GJVXd71ruLAWChVDWGE06kHHKgG8aljpZMUbwjG50Af3XyGLuuOBSMV2q7YDgQLkY9veSfhj6Znf9gQijRypLy6GJYAwVet8+MttYdN/sAjIqBZl9plLhJg3MXJtSfw=
skip_cleanup: true
file_glob: true
overwrite: true
file:
- ${DIST_GZIP}
- ${DIST_ZIP}
- ${DOC_GZIP}
- ChangeLog
on:
repo: s-will/LocARNA
tags: true