Skip to content

Commit

Permalink
add settings for Tracis CI and GitLab CI (refs #3962)
Browse files Browse the repository at this point in the history
  • Loading branch information
upsilon authored and Kimura Youichi committed Mar 31, 2017
1 parent 183289a commit 55f8bb9
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitlab-ci.yml
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
36 changes: 36 additions & 0 deletions .travis.yml
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

0 comments on commit 55f8bb9

Please sign in to comment.