This repository was archived by the owner on Aug 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,20 @@ mkdir plugins/fusioninventory && git clone --depth=35 $FI_SOURCE -b $FI_BRANCH p
3434IFS=/ read -a repo <<< $TRAVIS_REPO_SLUG
3535mv ../${repo[1]} plugins/flyvemdm
3636
37+ # patch settings
38+ PATCH_ARGS=" -p1 -N --batch"
39+
3740# patch Fusion Inventory when needed
3841cd plugins/fusioninventory
39- if [[ $FI_BRANCH == " master" ]] ; then patch -p1 --batch < ../flyvemdm/tests/patches/fusioninventory/fi-raise-max-version.patch; fi
40- if [[ $FI_BRANCH == " master" ]] ; then patch -p1 --batch < ../flyvemdm/tests/patches/fusioninventory/compat-glpi-9-3-2.diff; fi
41- if [[ $FI_BRANCH == " glpi9.3" ]] ; then patch -p1 --batch < ../flyvemdm/tests/patches/fusioninventory/compat-glpi-9-3-2.diff; fi
42+ if [[ $FI_BRANCH == " master" ]] ; then patch $PATCH_ARGS < ../flyvemdm/tests/patches/fusioninventory/fi-raise-max-version.patch; fi
43+ if [[ $FI_BRANCH == " master" ]] ; then patch $PATCH_ARGS < ../flyvemdm/tests/patches/fusioninventory/compat-glpi-9-3-2.diff; fi
44+ if [[ $FI_BRANCH == " glpi9.3" ]] ; then patch $PATCH_ARGS < ../flyvemdm/tests/patches/fusioninventory/compat-glpi-9-3-2.diff; fi
4245cd ../..
4346
4447# patch GLPI when needed
45- # if [[ $GLPI_BRANCH == "9.2.1" ]] ; then patch -p1 --batch < plugins/flyvemdm/tests/patches/glpi/10f8dabfc5e20bb5a4e7d4ba4b93706871156a8a.diff; fi
4648
4749# prepare plugin to test
4850cd plugins/flyvemdm
49- if [[ $GLPI_BRANCH == " master" ]] ; then patch -p1 --batch < tests/patches/allow-test-on-master-branch.patch; fi
51+ if [[ $GLPI_BRANCH == " master" ]] ; then patch $PATCH_ARGS < tests/patches/allow-test-on-master-branch.patch; fi
5052composer install --no-interaction
5153
You can’t perform that action at this time.
0 commit comments