forked from greenplum-db/gpdb-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
121 lines (105 loc) · 3.53 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
## ======================================================================
## ____ ____ ____ ____ ____
## / ___| _ \| _ \| __ ) / ___|_ _ _ __ _ __ _ _
## | | _| |_) | | | | _ \ | | _| | | | '_ \| '_ \| | | |
## | |_| | __/| |_| | |_) | | |_| | |_| | | | | | | | |_| |
## \____|_| |____/|____/ \____|\__,_|_| |_|_| |_|\__, |
## |___/
## ----------------------------------------------------------------------
## Travis CI build script for GPDB Open Source Project.
##
## Reference:
## o Travis CI Docs: http://docs.travis-ci.com
## ----------------------------------------------------------------------
##
## This project builds the core Greenplum Database Open Source
## project.
##
## ======================================================================
os:
- linux
language: c
sudo: false
git:
submodules: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libevent-dev
- g++-6
- python-dev
- python-yaml
## ----------------------------------------------------------------------
## Build tools
## ----------------------------------------------------------------------
compiler:
- gcc-6
python:
- "2.7"
## ----------------------------------------------------------------------
## Install supporting Python modules
## ----------------------------------------------------------------------
install:
- pip install --user --upgrade pip
- pip install --user --pre psutil
- pip install --user lockfile
- pip install --user paramiko
- pip install --user setuptools
## ----------------------------------------------------------------------
## Build APR & APR-UTIL used to build gpfdist
## ----------------------------------------------------------------------
env:
- APR=apr-1.6.3
APR_UTIL=apr-util-1.6.1
CC=gcc-6
CXX=g++-6
before_script:
- export PATH=${TRAVIS_BUILD_DIR}/tools/bin:$PATH
- cd ${TRAVIS_BUILD_DIR}
- wget http://ftp.jaist.ac.jp/pub/apache/apr/${APR}.tar.gz
- wget http://ftp.jaist.ac.jp/pub/apache/apr/${APR_UTIL}.tar.gz
- tar xf ${APR}.tar.gz
- tar xf ${APR_UTIL}.tar.gz
- cd ${TRAVIS_BUILD_DIR}/${APR}
- ./configure --prefix=${TRAVIS_BUILD_DIR}/tools
- make install
- cd ${TRAVIS_BUILD_DIR}/${APR_UTIL}
- ./configure --prefix=${TRAVIS_BUILD_DIR}/tools --with-apr=${TRAVIS_BUILD_DIR}/${APR}
- make install
## ----------------------------------------------------------------------
## Perform build:
## GPDB
## gpmapreduce
## orafce
## gpfdist
## ----------------------------------------------------------------------
script:
- cd ${TRAVIS_BUILD_DIR}
- ./configure --with-openssl --with-ldap --with-libcurl --prefix=${TRAVIS_BUILD_DIR}/gpsql --with-apr-config=${TRAVIS_BUILD_DIR}/tools/bin/apr-1-config --disable-orca --disable-gpcloud --enable-pxf
- make
- make install
- source ${TRAVIS_BUILD_DIR}/gpsql/greenplum_path.sh
- cd ${TRAVIS_BUILD_DIR}/gpAux/extensions/orafce
- make install USE_PGXS=1
- cd ${TRAVIS_BUILD_DIR}/gpAux/extensions/gpmapreduce
- make install
- cd ${TRAVIS_BUILD_DIR}
- make unittest-check
- postgres --version
- initdb --version
- createdb --version
- psql --version
- gpssh --version
- gpmapreduce --version
- gpfdist --version
## ----------------------------------------------------------------------
## Notification
## ----------------------------------------------------------------------
notifications:
email:
recipients:
on_success: change
on_failure: always