Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
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
PSDI Army
yii2
Commits
41bd9ab7
Commit
41bd9ab7
authored
Sep 14, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added memcache and apc to travis
parent
f6f2522a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
README.md
tests/unit/data/travis/README.md
+2
-0
apc-setup.sh
tests/unit/data/travis/apc-setup.sh
+3
-0
memcache-setup.sh
tests/unit/data/travis/memcache-setup.sh
+17
-0
No files found.
tests/unit/data/travis/README.md
View file @
41bd9ab7
...
...
@@ -4,6 +4,8 @@ These scripts might be used to configure your own system for test runs. But sinc
The scripts are:
-
[
`apc-setup.sh`
](
apc-setup.sh
)
Installs and configures the
[
apc pecl extension
](
http://pecl.php.net/package/apc
)
-
[
`memcache-setup.sh`
](
memcache-setup.sh
)
Compiles and installs the
[
memcache pecl extension
](
http://pecl.php.net/package/memcache
)
-
[
`cubrid-setup.sh`
](
cubrid-setup.sh
)
...
...
tests/unit/data/travis/apc-setup.sh
0 → 100755
View file @
41bd9ab7
echo
"extension = <extension>.so"
>>
~/.phpenv/versions/
$(
phpenv version-name
)
/etc/php.ini
echo
"apc.enable_cli = 1"
>>
~/.phpenv/versions/
$(
phpenv version-name
)
/etc/php.ini
\ No newline at end of file
tests/unit/data/travis/memcache-setup.sh
0 → 100755
View file @
41bd9ab7
#!/bin/sh
install_memcache
()
{
if
[
"
$(
expr
"
$TRAVIS_PHP_VERSION
"
">="
"5.5"
)
"
-eq
1
]
;
then
MEMCACHE_VERSION
=
"2.2.7"
wget
"http://pecl.php.net/get/memcache-
$MEMCACHE_VERSION
.tgz"
&&
tar
-zxf
"memcache-
$MEMCACHE_VERSION
.tgz"
&&
sh
-c
"cd memcache-
$MEMCACHE_VERSION
&& phpize && ./configure --enable-memcache && make && sudo make install"
fi
echo
"extension=memcache.so"
>>
~/.phpenv/versions/
$(
phpenv version-name
)
/etc/php.ini
return
$?
}
install_memcache
>
~/memcache.log
||
(
echo
"=== MEMCACHE BUILD FAILED ==="
;
cat
~/memcache.log
)
\ No newline at end of file
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