forked from UCLA-IRL/NAC-ABE
-
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.
- Loading branch information
Showing
1 changed file
with
27 additions
and
92 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,98 +1,33 @@ | ||
version: ~> 1.0 | ||
sudo: true | ||
merge_mode: replace # for custom builds | ||
language: cpp | ||
os: linux | ||
dist: bionic | ||
|
||
arch: | ||
- amd64 | ||
- arm64 | ||
- ppc64le | ||
- s390x | ||
|
||
env: | ||
- COMPILER=g++-7 | ||
- COMPILER=g++-9 | ||
- COMPILER=clang++-6.0 | ||
- COMPILER=clang++-9 | ||
|
||
jobs: | ||
matrix: | ||
include: | ||
# Linux | ||
- env: COMPILER=g++-8 | ||
- env: COMPILER=clang++-5.0 | ||
- env: COMPILER=clang++-7 | ||
- env: COMPILER=clang++-8 | ||
- env: COMPILER=clang++-10 | ||
- env: COMPILER=clang++-11 | ||
|
||
# macOS | ||
- os: osx | ||
osx_image: xcode9.4 | ||
env: # default compiler | ||
- os: osx | ||
osx_image: xcode10.1 | ||
env: # default compiler | ||
- os: osx | ||
osx_image: xcode10.3 | ||
env: # default compiler | ||
- os: osx | ||
osx_image: xcode11.3 | ||
env: # default compiler | ||
|
||
allow_failures: | ||
- env: COMPILER=clang++-11 | ||
|
||
fast_finish: true | ||
- os: linux | ||
dist: bionic | ||
name: bionic linux, python3.6 | ||
|
||
before_install: | ||
- | | ||
: Adding apt repositories | ||
case ${COMPILER} in | ||
g++-9) | ||
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages | ||
travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
travis_retry sudo apt-get -qq update | ||
;; | ||
clang++-1?) | ||
# https://apt.llvm.org/ | ||
LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}} | ||
travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - | ||
travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-11} main" | ||
travis_retry sudo apt-get -qq update | ||
;; | ||
esac | ||
- echo $LANG | ||
- echo $LC_ALL | ||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libboost1.65-all-dev libssl-dev ; fi | ||
- git clone https://github.com/named-data/ndn-cxx.git && cd ndn-cxx | ||
- git checkout ndn-cxx-0.7.0 | ||
- ./waf configure && ./waf && sudo ./waf install && cd .. | ||
- git clone https://github.com/named-data/NFD.git && cd NFD | ||
- git checkout NFD-0.7.0 | ||
- ./waf configure --without-libpcap --without-websocket && ./waf && sudo ./waf install && cd .. | ||
- git clone https://github.com/yufengzh/openabe.git && cd openabe | ||
- sudo -E ./deps/install_pkgs.sh | ||
- . ./env | ||
- make && make test && sudo -E make install && cd .. | ||
|
||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ldconfig ; fi | ||
- ndnsec-key-gen test | ||
- sudo nfd start -c /usr/local/etc/ndn/nfd.conf.sample & | ||
install: | ||
- | | ||
: Installing C++ compiler | ||
if [[ -n ${COMPILER} ]]; then | ||
travis_retry sudo apt-get -qy install ${COMPILER/clang++/clang} | ||
fi | ||
before_script: | ||
- | | ||
: Setting environment variables | ||
if [[ -n ${COMPILER} ]]; then | ||
export CXX=${COMPILER} | ||
fi | ||
case ${TRAVIS_OS_NAME} in | ||
linux) export NODE_LABELS="Linux Ubuntu Ubuntu-18.04" ;; | ||
osx) export NODE_LABELS="OSX OSX-$(sw_vers -productVersion | cut -d . -f -2)" ;; | ||
esac | ||
export WAF_JOBS=2 | ||
- | | ||
: Enabling workarounds | ||
case "${TRAVIS_CPU_ARCH},${COMPILER}" in | ||
ppc64le,g++-7) | ||
# AddressSanitizer does not seem to be working | ||
export DISABLE_ASAN=yes | ||
;; | ||
*,clang++-8) | ||
# https://bugs.llvm.org/show_bug.cgi?id=40808 | ||
export DISABLE_ASAN=yes | ||
;; | ||
esac | ||
- ${CXX:-c++} --version | ||
|
||
- ./waf configure --with-tests | ||
- ./waf | ||
- sudo ./waf install | ||
script: | ||
- ./.jenkins | ||
- ./build/unit-tests |