-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Travis #178
Closed
Closed
Fix Travis #178
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
BUILD_DIR="$(pwd)" | ||
source ./ci_scripts/install_openssl.sh 1.1.1b | ||
sudo updatedb | ||
source ./ci_scripts/install_libpq.sh | ||
sudo updatedb | ||
sudo ldconfig | ||
cd $BUILD_DIR |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
OPENSSL_DIR="$(pwd)/openssl-1.1.1b" | ||
POSTGRES_VERSION="11.3" | ||
POSTGRES_DIR="$(pwd)/postgres-${POSTGRES_VERSION}" | ||
TMP_DIR="/tmp/postgres" | ||
JOBS="-j$(nproc || echo 1)" | ||
|
||
if [ -d "${TMP_DIR}" ]; then | ||
rm -rf "${TMP_DIR}" | ||
fi | ||
|
||
mkdir -p "${TMP_DIR}" | ||
|
||
curl https://ftp.postgresql.org/pub/source/v${POSTGRES_VERSION}/postgresql-${POSTGRES_VERSION}.tar.gz | \ | ||
tar -C "${TMP_DIR}" -xzf - | ||
|
||
cd "${TMP_DIR}/postgresql-${POSTGRES_VERSION}" | ||
|
||
if [ -d "${POSTGRES_DIR}" ]; then | ||
rm -rf "${POSTGRES_DIR}" | ||
fi | ||
mkdir -p $POSTGRES_DIR | ||
|
||
./configure --prefix=$POSTGRES_DIR --with-openssl --with-includes=${OPENSSL_DIR}/include --with-libraries=${OPENSSL_DIR}/lib --without-readline | ||
|
||
cd src/interfaces/libpq; make; make install; cd - | ||
cd src/bin/pg_config; make install; cd - | ||
cd src/backend; make generated-headers; cd - | ||
cd src/include; make install; cd - | ||
|
||
export PATH="${POSTGRES_DIR}/bin:${PATH}" | ||
export CFLAGS="-I${POSTGRES_DIR}/include" | ||
export LDFLAGS="-L${POSTGRES_DIR}/lib" | ||
export LD_LIBRARY_PATH="${POSTGRES_DIR}/lib:$LD_LIBRARY_PATH" | ||
export PKG_CONFIG_PATH="${POSTGRES_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH" |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh | ||
|
||
if [ ${#} -lt 1 ]; then | ||
echo "OpenSSL version required." 1>&2 | ||
exit 1 | ||
fi | ||
|
||
OPENSSL_VERSION="${1}" | ||
OPENSSL_DIR="$(pwd)/openssl-${OPENSSL_VERSION}" | ||
TMP_DIR="/tmp/openssl" | ||
JOBS="-j$(nproc)" | ||
|
||
if [ -d "${TMP_DIR}" ]; then | ||
rm -rf "${TMP_DIR}" | ||
fi | ||
mkdir -p "${TMP_DIR}" | ||
curl -s https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | \ | ||
tar -C "${TMP_DIR}" -xzf - | ||
pushd "${TMP_DIR}/openssl-${OPENSSL_VERSION}" | ||
if [ -d "${OPENSSL_DIR}" ]; then | ||
rm -rf "${OPENSSL_DIR}" | ||
fi | ||
./Configure \ | ||
--prefix=${OPENSSL_DIR} \ | ||
enable-crypto-mdebug enable-crypto-mdebug-backtrace \ | ||
linux-x86_64 | ||
make -s $JOBS | ||
make install_sw | ||
popd | ||
|
||
export PATH="${OPENSSL_DIR}/bin:${PATH}" | ||
export CFLAGS="-I${OPENSSL_DIR}/include" | ||
export LDFLAGS="-L${OPENSSL_DIR}/lib" | ||
export LD_LIBRARY_PATH="${OPENSSL_DIR}/lib:$LD_LIBRARY_PATH" | ||
export PKG_CONFIG_PATH="${OPENSSL_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
14 too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say both 14 and 15.