language: php sudo: required env: - DB=mysql before_script: - ./tests/LDAP/ldap_run.sh - composer self-update - sed -e '/"php":/d' -i composer.json - rm -f composer.lock - composer install --optimize-autoloader #install 0.72.3 database - if [[ "$UPDATE" == "true" ]]; then bin/console glpi:database:update --config-dir=./tests --allow-unstable --no-interaction |grep -q "No migration needed." || (echo "glpi:database:update command FAILED" && exit 1); fi - if [[ "$UPDATE" == "true" ]]; then bin/console glpi:migration:myisam_to_innodb --config-dir=./tests --no-interaction; fi - mysql -u root -e 'create database glpitest;' - bin/console glpi:database:install --config-dir=./tests --no-interaction --db-name=glpitest --db-user=root - bin/console glpi:database:update --config-dir=./tests --no-interaction |grep -q "No migration needed." || (echo "glpi:database:update command FAILED" && exit 1) - ./tests/test_fail_update.sh; git checkout install/update_92_93.php; # LDAP stuff - ./tests/LDAP/ldap_fixtures.sh > /dev/null - if [[ "$UPDATE" == "true" ]]; then ./vendor/bin/robo --load-from tools minify; fi script: - mysql -u root -e 'select version();' - composer testldap #note: default maria version is 5.5 for all main php versions list exept nightly matrix: include: - php: 5.6 addons: apt: packages: - ldap-utils - slapd - php: 7.0 addons: mariadb: 10.2 apt: packages: - ldap-utils - slapd - php: 7.1 addons: mariadb: 10.1 apt: packages: - ldap-utils - slapd - php: 7.2 addons: apt: packages: - ldap-utils - slapd - php: 7.3 addons: apt: packages: - ldap-utils - slapd - php: nightly addons: apt: packages: - ldap-utils - slapd allow_failures: - php: nightly cache: directories: - $HOME/.composer/cache notifications: irc: channels: - "chat.freenode.org#glpi" on_success: change on_failure: always use_notice: true skip_join: true #exclude old branches, without tests branches: except: - /^0\..*$/