Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
672c34ed
Unverified
Commit
672c34ed
authored
Jan 10, 2020
by
Andreas Braun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-519: Test against upcoming driver versions
parent
58a499f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
.travis.yml
.travis.yml
+12
-0
install-extension.sh
.travis/install-extension.sh
+16
-1
No files found.
.travis.yml
View file @
672c34ed
...
...
@@ -112,6 +112,18 @@ jobs:
env
:
-
DEPLOYMENT=SHARDED_CLUSTER_RS
# Test next patch release for driver
-
stage
:
Test
php
:
"
7.3"
env
:
-
DRIVER_BRANCH="v1.6"
# Test next minor release for driver
-
stage
:
Test
php
:
"
7.3"
env
:
-
DRIVER_BRANCH="master"
before_install
:
-
pip install "mongo-orchestration>=0.6.7,<1.0" --user `whoami`
-
export SERVER_FILENAME=mongodb-linux-x86_64-${SERVER_DISTRO}-${SERVER_VERSION}
...
...
.travis/install-extension.sh
View file @
672c34ed
...
...
@@ -16,7 +16,22 @@ tpecl () {
fi
}
if
[
"x
${
DRIVER_VERSION
}
"
!=
"x"
]
;
then
if
[
"x
${
DRIVER_BRANCH
}
"
!=
"x"
]
;
then
echo
"Compiling driver branch
${
DRIVER_BRANCH
}
"
mkdir
-p
/tmp/compile
git clone https://github.com/mongodb/mongo-php-driver /tmp/compile/mongo-php-driver
cd
/tmp/compile/mongo-php-driver
git checkout
${
DRIVER_BRANCH
}
git submodule update
--init
phpize
./configure
--enable-mongodb-developer-flags
make all
-j20
>
/dev/null
make
install
echo
"extension=mongodb.so"
>>
`
php
--ini
|
grep
"Scan for additional .ini files in"
|
sed
-e
"s|.*:
\s
*||"
`
/mongodb.ini
elif
[
"x
${
DRIVER_VERSION
}
"
!=
"x"
]
;
then
echo
"Installing driver version
${
DRIVER_VERSION
}
from PECL"
tpecl mongodb-
${
DRIVER_VERSION
}
mongodb.so
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment