-
Notifications
You must be signed in to change notification settings - Fork 143
/
.travis.yml
55 lines (47 loc) · 2.23 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
# Travis CI is an automated build and test service for GitHub repositories.
# This configuration file provides Travis CI with enough information to build
# the RAMCloud code base.
#
# For more details about Travis CI see:
# https://travis-ci.org
#
# For more details about building C++ code bases with Travis CI see:
# http://docs.travis-ci.com/user/languages/cpp/
dist: xenial
language: cpp
compiler: gcc
jdk: openjdk8
env:
# Build Checks
- CMD="make -j2"
- CMD="make DEBUG=NO -j2"
- CMD="make ZOOKEEPER_LIB='-lzookeeper_mt' INFINIBAND=no -j2"
# Style Checks
- CMD="make check"
- CMD="make -j2 && hooks/pre-commit-90docs"
before_install:
- git submodule update --init --recursive
- git checkout ${TRAVIS_BRANCH}
- sudo apt-get update
- sudo apt-get install -y libzookeeper-mt-dev protobuf-compiler libprotobuf-dev libboost-all-dev
- wget http://launchpadlibrarian.net/57653337/doxygen_1.7.1-2_amd64.deb
- sudo dpkg -i doxygen_1.7.1-2_amd64.deb
# Quick hack to change the default java to openjdk8; the jdk specification
# doesn't work properly when the project language is not java.
- PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/lib\/jvm\/openjdk11\/bin//')
- JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
## For if we ever decide to support multiple GCC versions.
# - if [[ ${GCC_VERSION} ]]; then
# sudo apt-get install g++-${GCC_VERSION};
# export CXX="g++-${GCC_VERSION}";
# export CC="gcc-${GCC_VERSION}";
# fi
script:
- make clean
- eval $CMD
notifications:
email:
recipients:
- secure: "J3cSSL1QN91V2t6IMZISHk8WeHRJK/Oi8EDNwk1Gji1th5eEUpjiMM+95Y0kHENId+FTxdUT7OPzdpKxVYX5tN6ChCAJbH0bUON3hvVKejCuYMw+biAP41xUaChglTP92D7QqD03m43u57LxpdV6dhF/kLTr+ckXrLiR1NzyavK9wYNp4jYQLEf3yYjgCxn5Rcypib4SG3c5bhubQk+jBpzPd52LMHDwo+KpYViy9G1BksqnC0leqmqxXhCx1U2ETM0qdQe1DepyfQ89YeKYjMKup39jWr5Jw7f+d7w0OEJpVjoJYT67Q3aKvzec/lR3s0tFnj2CGwSSXHWSc4y3vTZPh1QGnZT292K8yQnU4ean5xIqEAM5gGZfy9jWTFSalKDnswXi9M3Nn3QNRCNw0UFYtsc0G/TyxKdwR3npzLte0Y+mpeehXXdbD7iqdDR9QWG/eut4ksdj7Wp8dnnHdFVexThGqKNN4H0oWmxgI6Qr/EVd6zCPLmQTUNWmLLCjPku+RkHgVX0eScpU591XrCsZy9jQ3K+HAjMSp6sRowBajxxh9dejmfWyJduBqS6MxxD22ucQvRO47I2SIvt3I1Vu0h7X9QlbJ3dSt1o0s3e2wy+ski4B9D8Ypu//2uRl+KBLCLPkTlaoEMd39ne/q2O/EYfuceKERP8DY55oWQc="
on_success: change
on_failure: always