+++ /dev/null
-sudo: false
-services:
- - postgresql
- - mysql
-before_script:
- - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" && $DB == "mysql" ]]; then echo 'nothing to do'; else phpenv config-rm xdebug.ini; fi
- - sed -e 's/"USER_DB", "galette_tests"/"USER_DB", "root"/' -e 's/"PWD_DB", "g@l3tte"/"PWD_DB", ""/' -i tests/config/mysql/config.inc.php
- - sed -e 's/"USER_DB", "galette_tests"/"USER_DB", "postgres"/' -e 's/"PWD_DB", "g@l3tte"/"PWD_DB", ""/' -i tests/config/pgsql/config.inc.php
- - ./bin/install_deps
- - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS galette_tests;' -U postgres; fi"
- - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database galette_tests;' -U postgres; fi"
- - sh -c "if [ '$DB' = 'pgsql' ]; then psql -d galette_tests -a -f galette/install/scripts/pgsql.sql -U postgres; fi"
- - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS galette_tests;'; fi"
- - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'use galette_tests; source galette/install/scripts/mysql.sql;'; fi"
- - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" && $DB == "mysql" ]]; then cd galette && composer require squizlabs/php_codesniffer && composer require maglnet/composer-require-checker && cd ..; fi
-
-script:
- - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" && $DB == "mysql" ]]; then galette/vendor/bin/phpcs -n -p --ignore=galette_tcpdf_config.php --standard=phpcs-rules.xml galette/lib/ tests/TestsBootstrap.php tests/Galette tests/plugins galette/webroot/index.php galette/includes/fields_defs/ galette/includes/smarty_plugins/ galette/includes/functions.inc.php galette/includes/galette.inc.php galette/includes/dependencies.php galette/includes/main.inc.php; fi
- - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" && $DB == "mysql" ]]; then cd galette && vendor/bin/composer-require-checker check --config-file=../.composer-require-checker.config.json && cd ..; fi
- - php galette/vendor/bin/atoum -mcn 1 -bf tests/TestsBootstrap.php --no-cc -d tests/Galette/
-# - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" && $DB == "mysql" ]]; then php galette/vendor/bin/atoum -mcn 1 -bf tests/TestsBootstrap.php -c tests/clover.php -d tests/Galette/; fi
-# - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" && $DB == "mysql" ]]; then echo 'nothing to do'; else php galette/vendor/bin/atoum -mcn 1 -bf tests/TestsBootstrap.php --no-cc -d tests/Galette/; fi
- - php galette/cron/reminder.php
-
-#after_script:
-# ## Scrutinizer
-# - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" && $DB == "mysql" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
-# - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" && $DB == "mysql" ]]; then php ocular.phar code-coverage:upload --format=php-clover tests/clover.xml; fi
-
-language: php
-
-php:
- - 7.4
- - 7.3
- - nightly
-
-matrix:
- allow_failures:
- - php: nightly
-
-env:
- - DB=pgsql
- - DB=mysql
-
-cache:
- directories:
- - $HOME/.composer/cache/files
- - $HOME/.npm/_cacache
-
-notifications:
- webhooks:
- urls:
- - "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MGpvaGFuLmN3aSUzQW1hdHJpeC5vcmcvJTIxUklBdnZwRFBnQkl1ZlBva0JDJTNBbWF0cml4Lm9yZw"
- on_success: change # always|never|change
- on_failure: always
- on_start: never
+++ /dev/null
-[main]
-host = https://www.transifex.com
-
-[galette.core]
-source_file = galette/lang/galette_en_US.po
-source_lang = en
-trans.fr_FR = galette/lang/galette_fr_FR.utf8.po
-type = PO
-
-[galette.routes]
-source_file = galette/lang/routes_en_US.po
-source_lang = en
-trans.fr_FR = galette/lang/routes_fr_FR.utf8.po
-type = PO