Skip to content

Commit 048ff8e

Browse files
committed
test: use GLPI nightly build instead of git repo
1 parent 8e4d049 commit 048ff8e

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
env:
77
GLPI_SOURCE: "https://github.com/glpi-project/glpi"
8+
GLPI_PACKAGE_URL: "https://nightly.glpi-project.org/glpi/9.5.tar.gz"
89
CS: 7.4
910
DB_HOST: 127.0.0.1
1011
MYSQL_ROOT_USER: root
@@ -110,4 +111,3 @@ jobs:
110111
composer install --no-interaction --no-progress
111112
plugin_test_lint
112113
plugin_test_cs
113-

tests/script-functions.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ init_databases() {
1919
# GLPI install
2020
install_glpi() {
2121
echo Installing GLPI
22-
sudo rm -rf ../glpi
23-
git clone --depth=35 $GLPI_SOURCE -b $GLPI_BRANCH ../glpi && cd ../glpi
24-
composer install --no-dev --no-interaction
25-
php bin/console dependencies install composer-options=--no-dev
26-
php bin/console glpi:system:check_requirements
27-
rm .atoum.php
22+
rm -rf ../glpi
23+
curl $GLPI_PACKAGE_URL --output /tmp/glpi.tar.gz
24+
tar xf /tmp/glpi.tar.gz --directory ../
25+
cd ../glpi
2826
mkdir -p tests/files/_cache
2927
cp -r ../formcreator plugins/$PLUGINNAME
3028
}

0 commit comments

Comments
 (0)