-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add settings for Tracis CI and GitLab CI (refs #3962)
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
image: openpne/openpne3-env:latest | ||
|
||
before_script: | ||
- apt-get update | ||
- apt-get install -y git | ||
|
||
- cp config/ProjectConfiguration.class.php{.sample,} | ||
- cp config/OpenPNE.yml{.sample,} | ||
|
||
- service mysql start | ||
|
||
- git clone git://github.com/upsilon/opIgnoreKnownErrorsPlugin.git plugins/opIgnoreKnownErrorsPlugin | ||
|
||
- DBTYPE=mysql DBUSER=root DBPASS= DBHOST=localhost DBPORT= DBNAME=openpne | ||
- DBSOCK=/var/run/mysqld/mysqld.sock | ||
- echo -e "$DBTYPE\n$DBUSER\n$DBPASS\n$DBHOST\n$DBPORT\n$DBNAME\n$DBSOCK\ny\n" | ./symfony openpne:install | ||
|
||
- ./symfony cc | ||
|
||
test: | ||
script: | ||
- ./symfony test:all |
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,36 @@ | ||
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
|
||
matrix: | ||
allow_failures: | ||
- php: 7.0 | ||
|
||
services: | ||
- mysql | ||
|
||
sudo: false | ||
|
||
install: | ||
- echo 'date.timezone = "Asia/Tokyo"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
|
||
# Disable Xdebug to avoid segfaults | ||
- phpenv config-rm xdebug.ini | ||
|
||
- cp config/ProjectConfiguration.class.php{.sample,} | ||
- cp config/OpenPNE.yml{.sample,} | ||
|
||
- git clone git://github.com/upsilon/opIgnoreKnownErrorsPlugin.git plugins/opIgnoreKnownErrorsPlugin | ||
|
||
- DBTYPE=mysql DBUSER=root DBPASS= DBHOST=localhost DBPORT= DBNAME=openpne DBSOCK= | ||
- for i in `seq 2`; do echo -e "$DBTYPE\n$DBUSER\n$DBPASS\n$DBHOST\n$DBPORT\n$DBNAME\n$DBSOCK\ny\n" | ./symfony openpne:install && break; done | ||
|
||
- ./symfony cc | ||
|
||
- yes '' | pecl install apcu-4.0.11 | ||
|
||
script: | ||
- ./symfony test:all |