-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
93 lines (87 loc) · 2.89 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
language: c++
matrix:
include:
- os: linux
dist: trusty
sudo: false
addons:
apt:
packages:
- cmake
- ninja-build
- clang-3.6
- libc++-dev
- zlib1g-dev
- libbz2-dev
- vim-common
- libopenmpi-dev
env:
- MATRIX_EVAL="CXX=clang++-3.6"
- os: linux
dist: trusty
sudo: false
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- cmake
- ninja-build
- clang-5.0
- libc++-dev
- zlib1g-dev
- libbz2-dev
- vim-common
- libopenmpi-dev
env:
- MATRIX_EVAL="CXX=clang++-5.0"
- os: linux
dist: trusty
sudo: false
addons:
apt:
packages:
- cmake
- ninja-build
- g++-4.8
- zlib1g-dev
- libbz2-dev
- vim-common
- libopenmpi-dev
env:
- MATRIX_EVAL="CXX=g++-4.8"
- os: linux
dist: trusty
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- ninja-build
- g++-7
- zlib1g-dev
- libbz2-dev
- vim-common
- libopenmpi-dev
env:
- MATRIX_EVAL="CXX=g++-7"
- os: osx
env:
- MATRIX_EVAL="CXX=g++-7"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
# workaround for GCC install issue, remove package that installed links to /usr/local/include/c++
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask list && brew cask uninstall --force oclint; fi
# coreutils and cmake dependencies are already pre-installed
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc@7 ninja zlib bzip2 vim binutils; fi
- eval "${MATRIX_EVAL}"
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir build; cd build; cmake -G Ninja -DHAVE_SSE4_1=1 ..; ninja; cd ..; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./util/build_osx.sh . build; fi
after_success:
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] && [[ "$TRAVIS_OS_NAME" == "osx" ]]; then openssl aes-256-cbc -K $encrypted_4188a201d0b5_key -iv $encrypted_4188a201d0b5_iv -in ./util/.travis.enc -out $HOME/.ssh/id_rsa -d; fi
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] && [[ "$TRAVIS_OS_NAME" == "osx" ]]; then chmod 400 $HOME/.ssh/id_rsa; fi
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] && [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ssh -o StrictHostKeyChecking=no codeship@uniclust.mmseqs.com "mkdir -p /home/mirdita/repositories/mmseqs-webserver/archive/${TRAVIS_COMMIT}"; fi
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] && [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd build; scp -o StrictHostKeyChecking=no mmseqs-win64.zip mmseqs-osx-static_sse41.tar.gz mmseqs-osx-static_avx2.tar.gz mmseqs-osx-debug-symbols.tar.gz codeship@uniclust.mmseqs.com:/home/mirdita/repositories/mmseqs-webserver/archive/${TRAVIS_COMMIT}; cd ..; fi