Skip to content
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

PHPLIB-1260: Revamp evergreen config #1179

Merged
merged 28 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9e80b4f
Split up evergreen config and create single build variant
alcaeus Sep 26, 2023
9766ae4
Upload built extension
alcaeus Sep 27, 2023
c1658f2
Add test variant
alcaeus Sep 27, 2023
6921f7d
Build on all platforms
alcaeus Sep 27, 2023
d95d44e
Run tests on all MongoDB versions
alcaeus Sep 27, 2023
50612ae
Add remaining tests
alcaeus Sep 27, 2023
92e59a5
Build against latest extension branch
alcaeus Sep 27, 2023
7f70c10
Run no-auth tests
alcaeus Sep 27, 2023
a98fad3
Set PHP_VERSION expansion in test variants
alcaeus Sep 28, 2023
5741cc5
Remove sudo to fix RHEL builds
alcaeus Sep 28, 2023
9ebdeb7
Clean up legacy variants to account for progress
alcaeus Sep 28, 2023
f7855be
Move Atlas Tests to new format
alcaeus Sep 28, 2023
ff20448
Move serverless tests to new format
alcaeus Sep 28, 2023
966adc8
Move more tests to new format
alcaeus Sep 28, 2023
eef549c
Fix wrong output in test configuration
alcaeus Sep 28, 2023
0ed6f88
Move CSFLE tests to new format
alcaeus Sep 28, 2023
7b50a94
Move ADL tests to new format
alcaeus Sep 28, 2023
7c828d2
Move lowest dependency tests to new format
alcaeus Sep 28, 2023
39d1f17
Define aliases for PR builds
alcaeus Sep 28, 2023
e213255
Prevent generated build files from showing diffs in pull requests
alcaeus Sep 28, 2023
310ed92
Apply recent changes from PHPC config
alcaeus Oct 13, 2023
ed81f9c
Remove unused YAML tags
alcaeus Oct 17, 2023
8fa6723
Supply makeflags for pecl install
alcaeus Oct 17, 2023
e5f2de9
Remove irrelevant functions
alcaeus Oct 17, 2023
545964d
Clean up variables when running scripts
alcaeus Oct 17, 2023
776834d
Skip CSFLE tests for all topologies
alcaeus Oct 17, 2023
f30131b
Document environment variables for install-composer.sh
alcaeus Oct 17, 2023
f96762a
Add missing CSFLE tag to no-aws-creds tests
alcaeus Oct 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .evergreen/compile-extension.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/sh
set -o errexit # Exit the script with error if any of the commands fail

PATH="$PHP_PATH/bin:$PATH"

install_extension ()
{
rm -f ${PHP_PATH}/lib/php.ini

if [ "x${EXTENSION_BRANCH}" != "x" ] || [ "x${EXTENSION_REPO}" != "x" ]; then
CLONE_REPO=${EXTENSION_REPO:-https://github.com/mongodb/mongo-php-driver}
CHECKOUT_BRANCH=${EXTENSION_BRANCH:-master}

echo "Compiling driver branch ${CHECKOUT_BRANCH} from repository ${CLONE_REPO}"

mkdir -p /tmp/compile
rm -rf /tmp/compile/mongo-php-driver
git clone ${CLONE_REPO} /tmp/compile/mongo-php-driver
cd /tmp/compile/mongo-php-driver

git checkout ${CHECKOUT_BRANCH}
git submodule update --init
phpize
./configure --enable-mongodb-developer-flags
make all -j20 > /dev/null
make install

cd ${PROJECT_DIRECTORY}
elif [ "${EXTENSION_VERSION}" != "" ]; then
echo "Installing driver version ${EXTENSION_VERSION} from PECL"
MAKEFLAGS=-j20 pecl install -f mongodb-${EXTENSION_VERSION}
else
echo "Installing latest driver version from PECL"
MAKEFLAGS=-j20 pecl install -f mongodb
fi

cp ${PROJECT_DIRECTORY}/.evergreen/config/php.ini ${PHP_PATH}/lib/php.ini

php --ri mongodb
}

install_extension
Loading