1 Star 0 Fork 34

Qimin Wang/gpdb

forked from Gitee 极速下载/gpdb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 9.91 KB
一键复制 编辑 原始数据 按行查看 历史
Ashwin Agrawal 提交于 2023-07-13 15:30 . Delete gpmapreduce code
## ----------------------------------------------------------------------
## Travis CI build script for Greenplum Database Open Source Project.
## ----------------------------------------------------------------------
language: cpp
cache: ccache
git:
submodules: true
addons:
apt:
config:
retries: true
packages: &common_packages
- libxml2
- libxml2-dev
- libxerces-c-dev
- libevent-dev
- libperl-dev
- libuv1-dev
- python3
- python3-dev
- libapr1-dev
- libzstd1
- libzstd1-dev
- net-tools
- ssh
matrix:
allow_failures:
- arch: arm64
fast_finish: true
include:
# OS and Compiler variations
#
# NOTE: Some of the docker containers set LC_ALL and LC_CTYPE to
# values that are not specified on the system's locale as found
# via "locale -a". This causes gpinitsystem and possibly initdb
# to fail. Set these environment variables to the system's locale.
# ----------------------------------------------------------------
#
# Ubuntu Bionic, gcc 7
- os: linux
dist: bionic
compiler: gcc
env:
- T=debug C=""
- LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
# Ubuntu Bionic, clang 7
- os: linux
dist: bionic
compiler: clang
env:
- T=debug C=""
- LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
# macOS, XCode11
- os: osx
compiler: clang
osx_image: xcode11
env: T=macos
addons:
homebrew:
packages:
- ccache
- xerces-c
#
# Configuration variations
# ----------------------------------------------------------------
#
# Debug build without any compression algorithms supplied
- os: linux
dist: bionic
compiler: gcc
env:
- T=debug C="--without-zlib --without-libbz2 --without-zstd"
- LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
# ARM64, Ubuntu Bionic, gcc 7, unit tests
# For arm64, disable orca to avoid job timeouts
- os: linux
arch: arm64
dist: bionic
compiler: gcc
env:
- tests=unit T=debug C="--disable-orca"
- LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
# ARM64, Ubuntu Bionic, gcc 7, installcheck
- os: linux
arch: arm64
dist: bionic
compiler: gcc
env:
- tests=installcheck T=debug C="--disable-orca"
- LC_CTYPE="en_US.utf8" LC_ALL="en_US.utf8" # see NOTE above
- name: clang-tidy
os: linux
dist: focal
addons:
apt:
packages:
- bear
- ninja-build
- clang-11
- clang-tidy-11
- parallel
- libxerces-c-dev
before_install: ~
install: ~
before_script: ~
after_script: ~
script:
- |
(
set -e
mkdir ../vpath.debug
cd ../vpath.debug
../gpdb/configure \
--enable-debug \
--enable-cassert \
--enable-orca \
--without-zstd --disable-gpfdist \
CC="ccache clang-11" CXX="ccache clang++-11" CFLAGS=-O0 CXXFLAGS=-O0
bear --append make -s -C src/backend/gpopt
)
CLANG_TIDY=clang-tidy-11 src/tools/tidy chk-gpopt ../vpath.debug
- |
(
set -e
mkdir ../vpath.release
cd ../vpath.release
../gpdb/configure \
--enable-debug \
--disable-cassert \
--enable-orca \
--without-zstd --disable-gpfdist \
CC="ccache clang-11" CXX="ccache clang++-11" CFLAGS=-O0 CXXFLAGS=-O0
bear --append make -s -C src/backend/gpopt
)
CLANG_TIDY=clang-tidy-11 src/tools/tidy chk-gpopt ../vpath.release
- CXX=clang++-11 cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -GNinja -DCMAKE_BUILD_TYPE=Debug -Hsrc/backend/gporca -Bbuild.debug
- CLANG_TIDY=clang-tidy-11 src/tools/tidy chk-orca build.debug
- CXX=clang++-11 cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -Hsrc/backend/gporca -Bbuild.relwithdebinfo
- CLANG_TIDY=clang-tidy-11 src/tools/tidy chk-orca build.relwithdebinfo
- name: check-format
stage: lint
os: linux
dist: focal
addons:
apt:
packages:
- clang-format-11
- parallel
before_install: ~
install: ~
before_script: ~
after_script: ~
script:
- env CLANG_FORMAT=clang-format-11 src/tools/fmt gen
- git diff --exit-code
- env CLANG_FORMAT=clang-format-11 src/tools/fmt chk
stages:
- lint
- test
## ----------------------------------------------------------------------
## Build tools
## ----------------------------------------------------------------------
# For linux, to prevent a possible crash in gpstop, disable RemoveIPC. See:
# https://www.postgresql.org/docs/current/kernel-resources.html#SYSTEMD-REMOVEIPC
before_install:
- eval "${OVERRIDE_CC}"
- eval "${OVERRIDE_CXX}"
- ccache --max-size 4G
# ccache 3.2 (from Ubuntu Xenial) has CCACHE_CPP2 default to off (this
# setting defaults to on starting from ccache 3.3). That default leads to
# unlegible compiler warning outputs because GCC and Clang will emit
# warnings using the preprocessed output...
- |
if [ "${TRAVIS_DIST}" = xenial ]; then
ccache --set-config run_second_cpp=true
fi
- |
if [ "${TRAVIS_COMPILER}" = clang ]; then
case "${TRAVIS_OS_NAME}" in
linux)
sudo ln -sv ../../bin/ccache /usr/lib/ccache/${CC}
sudo ln -sv ../../bin/ccache /usr/lib/ccache/${CXX}
;;
osx)
PATH=/usr/local/opt/ccache/libexec:$PATH
;;
esac
fi
if [ "${TRAVIS_OS_NAME}" = linux ]; then
echo "RemoveIPC=no" | sudo tee -a /etc/systemd/logind.conf
sudo systemctl daemon-reload
sudo systemctl restart systemd-logind
fi
## ----------------------------------------------------------------------
## Perform build:
## ----------------------------------------------------------------------
before_script:
- ssh-keygen -t "rsa" -f ~/.ssh/id_rsa -N ""
- ssh-keyscan $(hostname) >> ~/.ssh/known_hosts
- cp ~/.ssh/{id_rsa.pub,authorized_keys}
- ccache --zero-stats
script:
- |
set -eo pipefail
if [ "$T" = "debug" ]; then
./configure \
--prefix=${TRAVIS_BUILD_DIR}/gpsql \
--enable-cassert \
--enable-debug \
--enable-debug-extensions \
--with-perl \
--with-python \
--enable-orca \
--with-openssl \
--with-ldap \
--with-libcurl \
--with-libxml \
--enable-orafce \
--enable-ic-proxy \
$C
travis_wait 50 make -s
make -s install
source ${TRAVIS_BUILD_DIR}/gpsql/greenplum_path.sh
if [ -z "$tests" ] || [ "$tests" = "unit" ]; then
make -s unittest-check
fi
if [ -z "$tests" ] || [ "$tests" = "installcheck" ]; then
make -C gpAux/gpdemo cluster
source gpAux/gpdemo/gpdemo-env.sh
trap look4diffs ERR
function look4diffs() {
echo ========regression.diffs========
cat src/test/regress/regression.diffs
echo ========regression.diffs========
exit 1
}
make -C src/test/regress installcheck-small
fi
fi
- |
set -eo pipefail
if [ "$T" = "production" ]; then
./configure \
--prefix=${TRAVIS_BUILD_DIR}/gpsql \
--with-perl \
--with-python \
--enable-orca \
--with-openssl \
--with-ldap \
--with-libcurl \
--with-libxml \
--enable-orafce \
--enable-ic-proxy \
$C
travis_wait 50 make -s
make -s install
source ${TRAVIS_BUILD_DIR}/gpsql/greenplum_path.sh
make -s unittest-check
make -C gpAux/gpdemo cluster
source gpAux/gpdemo/gpdemo-env.sh
trap look4diffs ERR
function look4diffs() {
echo ========regression.diffs========
cat src/test/regress/regression.diffs
echo ========regression.diffs========
exit 1
}
make -C src/test/regress installcheck-small
fi
- |
set -eo pipefail
if [ "$T" = "macos" ]; then
./configure \
--prefix=${TRAVIS_BUILD_DIR}/gpsql \
--with-perl \
--with-python \
--enable-orca \
--enable-orafce \
--disable-gpfdist \
--disable-pxf \
--disable-gpcloud \
--without-zstd \
--with-includes=$(brew --prefix xerces-c)/include \
--with-libs=$(brew --prefix xerces-c)/lib \
CFLAGS='-O0' CXXFLAGS='-O0' \
$C
travis_wait 40 make -s
make -s install
source ${TRAVIS_BUILD_DIR}/gpsql/greenplum_path.sh
make -s unittest-check
fi
after_script:
- ccache --show-stats
- source ${TRAVIS_BUILD_DIR}/gpsql/greenplum_path.sh
- postgres --version
- gpssh --version
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/qimin_wang/gpdb.git
git@gitee.com:qimin_wang/gpdb.git
qimin_wang
gpdb
gpdb
main

搜索帮助