2019-02-26 03:33:01 +08:00
|
|
|
language: cpp
|
2020-11-11 02:55:59 +08:00
|
|
|
|
2020-10-28 06:43:39 +08:00
|
|
|
dist: bionic
|
2020-11-11 02:55:59 +08:00
|
|
|
|
2020-10-28 06:43:39 +08:00
|
|
|
arch:
|
|
|
|
- ppc64le
|
2020-11-11 02:55:59 +08:00
|
|
|
|
2020-11-05 02:35:33 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.dep_cache
|
2020-11-11 02:55:59 +08:00
|
|
|
|
2020-11-05 02:35:33 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- simdjson_DEPENDENCY_CACHE_DIR=$HOME/.dep_cache
|
2020-11-11 02:55:59 +08:00
|
|
|
|
2020-10-28 06:43:39 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-8
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=gcc-8 && CXX=g++-8"
|
|
|
|
compiler: gcc-8
|
2019-07-27 01:53:53 +08:00
|
|
|
|
2020-10-28 06:43:39 +08:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-9
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=gcc-9 && CXX=g++-9"
|
|
|
|
compiler: gcc-9
|
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-10
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=gcc-10 && CXX=g++-10"
|
|
|
|
compiler: gcc-10
|
|
|
|
|
2021-03-27 01:51:39 +08:00
|
|
|
# The sanitizer runs fail systematically
|
|
|
|
# - os: linux
|
|
|
|
# addons:
|
|
|
|
# apt:
|
|
|
|
# sources:
|
|
|
|
# - ubuntu-toolchain-r-test
|
|
|
|
# packages:
|
|
|
|
# - g++-10
|
|
|
|
# env:
|
|
|
|
# - COMPILER="CC=gcc-10 && CXX=g++-10"
|
|
|
|
# - SANITIZE="on"
|
|
|
|
# compiler: gcc-10-sanitize
|
2020-10-28 06:43:39 +08:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-10
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=gcc-10 && CXX=g++-10"
|
|
|
|
- STATIC="on"
|
|
|
|
compiler: gcc-10-static
|
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-bionic-6.0
|
|
|
|
packages:
|
|
|
|
- clang-6.0
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=clang-6.0 && CXX=clang++-6.0"
|
|
|
|
compiler: clang-6
|
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-bionic-7
|
|
|
|
packages:
|
|
|
|
- clang-7
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=clang-7 && CXX=clang++-7"
|
|
|
|
compiler: clang-7
|
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-bionic-8
|
|
|
|
packages:
|
|
|
|
- clang-8
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=clang-8 && CXX=clang++-8"
|
|
|
|
compiler: clang-8
|
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-bionic-9
|
|
|
|
packages:
|
|
|
|
- clang-9
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=clang-9 && CXX=clang++-9"
|
|
|
|
compiler: clang-9
|
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-10
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
|
|
|
|
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=clang-10 && CXX=clang++-10"
|
|
|
|
compiler: clang-10
|
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-10
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
|
|
|
|
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
|
|
env:
|
|
|
|
- COMPILER="CC=clang-10 && CXX=clang++-10"
|
|
|
|
- STATIC="on"
|
|
|
|
compiler: clang-10-static
|
|
|
|
|
2021-03-27 01:51:39 +08:00
|
|
|
# The clang sanitizer runs fail frequently at setup time
|
|
|
|
# - os: linux
|
|
|
|
# addons:
|
|
|
|
# apt:
|
|
|
|
# packages:
|
|
|
|
# - clang-10
|
|
|
|
# sources:
|
|
|
|
# - ubuntu-toolchain-r-test
|
|
|
|
# - sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
|
|
|
|
# key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
|
|
# env:
|
|
|
|
# - COMPILER="CC=clang-10 && CXX=clang++-10"
|
|
|
|
# - SANITIZE="on"
|
|
|
|
# compiler: clang-10-sanitize
|
2020-10-28 06:43:39 +08:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- eval "${COMPILER}"
|
|
|
|
|
|
|
|
install:
|
2020-11-11 02:55:59 +08:00
|
|
|
- wget -q -O - "https://raw.githubusercontent.com/simdjson/debian-ppa/master/key.gpg" | sudo apt-key add -
|
|
|
|
- sudo apt-add-repository "deb https://raw.githubusercontent.com/simdjson/debian-ppa/master simdjson main"
|
|
|
|
- sudo apt-get -qq update
|
|
|
|
- sudo apt-get purge cmake cmake-data
|
|
|
|
- sudo apt-get -t simdjson -y install cmake
|
2020-10-28 06:43:39 +08:00
|
|
|
- export CMAKE_CXX_FLAGS="-maltivec -mcpu=power9 -mtune=power9"
|
|
|
|
- export CMAKE_C_FLAGS="${CMAKE_CXX_FLAGS}"
|
|
|
|
- export CMAKE_FLAGS="-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -DSIMDJSON_IMPLEMENTATION=ppc64;fallback";
|
|
|
|
- if [[ "${SANITIZE}" == "on" ]]; then
|
|
|
|
export CMAKE_FLAGS="${CMAKE_FLAGS} -DSIMDJSON_SANITIZE=ON";
|
|
|
|
export ASAN_OPTIONS="detect_leaks=0";
|
|
|
|
fi
|
|
|
|
- if [[ "${STATIC}" == "on" ]]; then
|
2021-05-08 10:59:26 +08:00
|
|
|
export CMAKE_FLAGS="${CMAKE_FLAGS} -DBUILD_SHARED_LIBS=OFF";
|
2020-10-28 06:43:39 +08:00
|
|
|
fi
|
2020-12-12 09:28:24 +08:00
|
|
|
- export CTEST_FLAGS="-j4 --output-on-failure -LE explicitonly"
|
2020-10-28 06:43:39 +08:00
|
|
|
|
|
|
|
script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake $CMAKE_FLAGS ..
|
|
|
|
- cmake --build . -- -j2
|
|
|
|
- SIMDJSON_FORCE_IMPLEMENTATION=ppc64 ctest $CTEST_FLAGS -L per_implementation
|
|
|
|
- SIMDJSON_FORCE_IMPLEMENTATION=fallback ctest $CTEST_FLAGS -L per_implementation
|
|
|
|
- ctest $CTEST_FLAGS -LE "acceptance|per_implementation"
|