forked from trinityrnaseq/trinityrnaseq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request trinityrnaseq#623 from junaruga/feature/devel-merg…
…e-travis.yml Merge files from master branch.
- Loading branch information
Showing
5 changed files
with
73 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.o | ||
*.pyc | ||
*.swp | ||
*~ | ||
/Chrysalis/bin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ sudo: false | |
git: | ||
depth: 1 | ||
language: generic | ||
# Custom definitions | ||
.conditions: | ||
if: &secondary type = cron OR env(SECONDARY) = true | ||
matrix: | ||
include: | ||
# http://www.cpan.org/src/ | ||
|
@@ -11,32 +14,57 @@ matrix: | |
- language: perl | ||
perl: "5.26-shrplib" | ||
env: CC=gcc-8 CXX=g++-8 | ||
# https://docs.travis-ci.com/user/languages/cpp/ | ||
- language: cpp | ||
compiler: clang | ||
# https://docs.travis-ci.com/user/languages/java/ | ||
- language: java | ||
jdk: oraclejdk9 | ||
env: CC=gcc-6 CXX=g++-6 | ||
# https://docs.travis-ci.com/user/languages/python/ | ||
- language: python | ||
python: "3.6" | ||
- language: generic | ||
env: CC=clang-3.9 CXX=clang++-3.9 LDFLAGS="-fopenmp=libiomp5" | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-precise-3.9 | ||
packages: | ||
- clang-3.9 | ||
if: *secondary | ||
- language: generic | ||
# Open MP support is available from clang-3.7. | ||
env: CC=clang-3.7 CXX=clang++-3.7 LDFLAGS="-fopenmp=libiomp5" | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-precise-3.7 | ||
packages: | ||
- clang-3.7 | ||
if: *secondary | ||
# Test old version of the dependency packages. | ||
- language: perl | ||
perl: "5.18-shrplib" | ||
env: BOWTIE2_VERSION=2.2.6 | ||
if: *secondary | ||
# https://docs.travis-ci.com/user/reference/osx | ||
- os: osx | ||
language: cpp | ||
# Do not have to set "compiler: gcc" as it is actually clang on osx. | ||
compiler: clang | ||
- os: osx | ||
osx_image: xcode9.4 | ||
env: CC=gcc-8 CXX=g++-8 | ||
- os: osx | ||
osx_image: xcode9.4 | ||
# "clang++" installed by [email protected] instead of "clang++-3.9". | ||
env: CC=clang-3.9 CXX=clang++ | ||
if: *secondary | ||
- os: osx | ||
osx_image: xcode9.4 | ||
env: CC=clang-3.7 CXX=clang++-3.7 | ||
if: *secondary | ||
allow_failures: | ||
- language: cpp | ||
compiler: clang | ||
- env: BOWTIE2_VERSION=2.2.6 | ||
- env: CC=clang-3.7 CXX=clang++-3.7 LDFLAGS="-fopenmp=libiomp5" | ||
- os: osx | ||
env: CC=clang-3.7 CXX=clang++-3.7 | ||
fast_finish: true | ||
install: | ||
- | | ||
|
@@ -56,21 +84,33 @@ install: | |
echo "Installing ${CXX}." | ||
sudo apt-get install -qq "${CXX}" | ||
fi | ||
if [[ "${CC}" =~ clang- ]]; then | ||
echo "Installing ${CC}." | ||
sudo apt-get install -qq "${CC}" libiomp-dev | ||
fi | ||
else | ||
# osx | ||
export HOMEBREW_NO_AUTO_UPDATE=1 | ||
if [[ "${CC}" =~ gcc- ]]; then | ||
# Update command line tool to avoid an error: | ||
# "_stdio.h: No such file or directory", when building samtools. | ||
softwareupdate --list | ||
softwareupdate --install "Command Line Tools (macOS High Sierra version 10.13) for Xcode-9.4" | ||
softwareupdate --install "Command Line Tools (macOS High Sierra version 10.13) for Xcode-10.1" | ||
# Uninstall oclint to install gcc on OSX. | ||
# https://github.com/travis-ci/travis-ci/issues/8826 | ||
brew cask uninstall oclint | ||
CC_PKG="$(echo "${CC}" | sed -e 's/-/@/')" | ||
echo "Installing ${CC_PKG}." | ||
brew install "${CC_PKG}" | ||
fi | ||
if [[ "${CC}" =~ clang- ]]; then | ||
echo "Installing ${CC}." | ||
CC_VERSION=$(echo "${CC}" | sed -e 's/^clang-//') | ||
brew install "llvm@${CC_VERSION}" | ||
brew install libomp | ||
CC_PREFIX=$(brew --prefix "llvm@${CC_VERSION}") | ||
export PATH="${CC_PREFIX}/bin:$PATH" | ||
export LDFLAGS="-L${CC_PREFIX}/lib -Wl,-rpath,${CC_PREFIX}/lib" | ||
export CPPFLAGS="-I${CC_PREFIX}/include" | ||
fi | ||
fi | ||
- pushd "${HOME}" | ||
|
@@ -93,7 +133,7 @@ install: | |
- pushd samtools-1.9 | ||
- autoheader | ||
- autoconf -Wno-syntax | ||
- ./configure | ||
- ./configure || (cat config.log; false) | ||
- make | ||
- sudo make install | ||
- popd | ||
|
@@ -118,7 +158,7 @@ install: | |
- wget https://github.com/gmarcais/Jellyfish/releases/download/v${JELLYFISH_VERSION}/jellyfish-${JELLYFISH_VERSION}.tar.gz | ||
- tar xzf jellyfish-${JELLYFISH_VERSION}.tar.gz | ||
- pushd jellyfish-${JELLYFISH_VERSION} | ||
- ./configure | ||
- ./configure || (cat config.log; false) | ||
- make | ||
- sudo make install | ||
- popd | ||
|
@@ -149,10 +189,17 @@ install: | |
- sudo pip install numpy | ||
|
||
- popd | ||
script: | ||
before_script: | ||
- | | ||
export TRINITY_HOME=`pwd` && \ | ||
make && \ | ||
make plugins && \ | ||
sudo make install > /dev/null && \ | ||
make test -C sample_data/test_Trinity_Assembly | ||
function show_log { | ||
for file in $(find . -name config.log); do | ||
echo "config.log File: ${file}" | ||
cat "${file}" | ||
done | ||
} | ||
- export TRINITY_HOME=`pwd` | ||
- make || (show_log; false) | ||
- make plugins || (show_log; false) | ||
- sudo make install > /dev/null | ||
script: | ||
- make test -C sample_data/test_Trinity_Assembly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
CXX = g++ | ||
CXX ?= g++ | ||
prefix = ../htslib | ||
|
||
ScaffoldIwormContigs: | ||
|