Skip to content

Commit

Permalink
test: use GLPI nightly build instead of git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Apr 5, 2022
1 parent 4c3132f commit b1f7385
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

env:
GLPI_SOURCE: "https://github.com/glpi-project/glpi"
GLPI_PACKAGE_URL: "https://nightly.glpi-project.org/glpi/master.tar.gz"
CS: 7.4
DB_HOST: 127.0.0.1
MYSQL_ROOT_USER: root
Expand Down
18 changes: 11 additions & 7 deletions tests/script-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ init_databases() {
install_glpi() {
echo Installing GLPI
rm -rf ../glpi
git clone --depth=35 $GLPI_SOURCE -b $GLPI_BRANCH ../glpi && cd ../glpi
composer install --no-dev --no-interaction
php bin/console dependencies install composer-options=--no-dev
php bin/console locales:compile
php bin/console glpi:build:compile_scss
php bin/console glpi:system:check_requirements
rm .atoum.php
# git clone --depth=35 $GLPI_SOURCE -b $GLPI_BRANCH ../glpi
# cd ../glpi
# composer install --no-dev --no-interaction
# php bin/console dependencies install composer-options=--no-dev
# php bin/console locales:compile
# php bin/console glpi:build:compile_scss
# php bin/console glpi:system:check_requirements
# rm .atoum.php
curl $GLPI_PACKAGE_URL --output /tmp/glpi.tar.gz
tar xf /tmp/glpi.tar.gz --directory ../
cd ../glpi
mkdir -p tests/files/_cache
cp -r ../$PLUGINNAME plugins/$PLUGINNAME
}
Expand Down

0 comments on commit b1f7385

Please sign in to comment.