-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12,895 changed files
with
535,557 additions
and
301,160 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,12 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 |
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 |
---|---|---|
@@ -1,10 +1,30 @@ | ||
uploads/* | ||
!uploads/.htaccess | ||
# Core Files | ||
/config.php | ||
/index_custom.php | ||
/index_customSidebar.php | ||
|
||
# Uploads Folder | ||
uploads/* | ||
!uploads/.htaccess | ||
|
||
# Tests Folder | ||
tests/log/* | ||
tests/config/support/_generated/* | ||
|
||
# Template Cache | ||
/resources/templates/cache/* | ||
|
||
# Misc System Temp Files | ||
Thumb.db | ||
.DS_Store | ||
tests/log/* | ||
*~ | ||
nbproject/ | ||
/i18n/*.po | ||
|
||
# Dev Dependencies | ||
/vendor/twbs | ||
|
||
# examples and tests in the vendor folder | ||
/vendor/**/tests | ||
/vendor/**/unitTests | ||
/vendor/**/Examples | ||
/vendor/**/examples |
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,80 @@ | ||
before_script: | ||
# install apt packages | ||
- apt-get update -qy | ||
- apt-get install -qy git zip unzip zlib1g-dev gettext locales | ||
# install php extensions | ||
- docker-php-ext-install zip gettext pdo_mysql > /dev/null | ||
# properly setup php | ||
- cp -pdf /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini | ||
- php --ini | ||
# install composer | ||
- mkdir $HOME/bin | ||
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
- php -r "if (hash_file('SHA384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | ||
- php composer-setup.php --install-dir=$HOME/bin --filename=composer | ||
- php -r "unlink('composer-setup.php');" | ||
- export PATH=$HOME/bin:$HOME/.phpunit/vendor/bin:$HOME/.composer/vendor/bin:$PATH | ||
# run test server for codeception tests | ||
- php -S 127.0.0.1:8888 -t $CI_PROJECT_DIR >/dev/null 2>&1 & | ||
# install codeception globally in test environment | ||
- COMPOSER_HOME=$HOME/.composer composer global require "codeception/codeception:2.1.*@dev" --no-progress | ||
# install phpunit globally in test environment, but in different composer home | ||
- COMPOSER_HOME=$HOME/.phpunit composer global require "phpunit/phpunit" "$PHPUNIT_VERSION" --no-progress | ||
# install dependencies for test | ||
- composer install --prefer-dist --no-interaction --no-progress | ||
# setup system locale for test | ||
- echo -e "es_ES.UTF-8 UTF-8\nfr_FR.UTF-8 UTF-8\nzh_TW.UTF-8 UTF-8" > /etc/locale.gen | ||
- cat /etc/locale.gen | ||
- locale-gen es_ES.utf8 | ||
- locale-gen fr_FR.utf8 | ||
- locale-gen zh_TW.utf8 | ||
- localedef --list-archive | ||
- locale -a | ||
|
||
services: | ||
- mariadb:latest | ||
|
||
variables: | ||
# supporess interative prompt from debian-based OS | ||
DEBIAN_FRONTEND: noninteractive | ||
# variables required for Gibbon to test with | ||
TEST_ENV: codeception | ||
CI_PLATFORM: gitlab_ci | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
ABSOLUTE_URL: http://127.0.0.1:8888 | ||
DB_HOST: mariadb | ||
DB_NAME: gibbon_test | ||
DB_USERNAME: gibbon_test | ||
DB_PASSWORD: gibbon_password | ||
# variables to setup mariadb docker | ||
MYSQL_RANDOM_ROOT_PASSWORD: 'yes' | ||
MYSQL_DATABASE: gibbon_test | ||
MYSQL_USER: gibbon_test | ||
MYSQL_PASSWORD: gibbon_password | ||
|
||
php:7.0: | ||
image: php:7.0 | ||
variables: | ||
PHPUNIT_VERSION: ^6 | ||
script: | ||
- composer test | ||
tags: | ||
- git-annex | ||
|
||
php:7.1: | ||
image: php:7.1 | ||
variables: | ||
PHPUNIT_VERSION: ^6 | ||
script: | ||
- composer test | ||
tags: | ||
- git-annex | ||
|
||
php:7.2: | ||
image: php:7.2 | ||
variables: | ||
PHPUNIT_VERSION: ^6 | ||
script: | ||
- composer test | ||
tags: | ||
- git-annex |
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,3 @@ | ||
[submodule "i18n"] | ||
path = i18n | ||
url = https://github.com/GibbonEdu/i18n.git |
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 |
---|---|---|
|
@@ -9,11 +9,14 @@ os: | |
# list any PHP version you want to test against | ||
php: | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
|
||
# optionally specify a list of environments, for example to test different RDBMS | ||
env: | ||
global: | ||
- TEST_ENV='codeception' | ||
- CI_PLATFORM='travis_ci' | ||
- ABSOLUTE_URL='http://127.0.0.1:8888' | ||
- DB_HOST='127.0.0.1' | ||
- DB_NAME='gibbon_test' | ||
|
@@ -39,9 +42,11 @@ cache: | |
- vendor | ||
- $HOME/.composer/cache | ||
|
||
# Disable x-debug to speed up things | ||
before_install: | ||
# Disable x-debug to speed up things | ||
- phpenv config-rm xdebug.ini | ||
# add composer global bin to PATH to make codeception usable | ||
- export PATH=$HOME/.composer/vendor/bin:$PATH | ||
|
||
# Install packages those will be required during build | ||
install: | ||
|
@@ -53,15 +58,12 @@ install: | |
before_script: | ||
- php -S 127.0.0.1:8888 -t $TRAVIS_BUILD_DIR >/dev/null 2>&1 & | ||
- sleep 1 | ||
- cd tests | ||
|
||
# omitting "script:" will default to phpunit | ||
# use the $DB env variable to determine the phpunit.xml to use | ||
script: | ||
- ~/.composer/vendor/bin/codecept run install --env travis_ci | ||
- ~/.composer/vendor/bin/codecept run acceptance --env travis_ci | ||
- phpunit --verbose --configuration phpunit.xml | ||
- composer test | ||
|
||
# configure notifications (email, IRC, campfire etc) | ||
notifications: | ||
email: "[email protected]" | ||
email: $GIBBON_NOTIFICATION_EMAIL |
Oops, something went wrong.