Commit 7f26c62a authored by Nicolas Widart's avatar Nicolas Widart

Adding custom travis bash script to reset changes from repository after composer

parent e67b199e
...@@ -12,6 +12,8 @@ env: ...@@ -12,6 +12,8 @@ env:
- LARAVEL_VERSION="~5.3" TESTBENCH_VERSION="~3.3" - LARAVEL_VERSION="~5.3" TESTBENCH_VERSION="~3.3"
before_script: before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
- chmod +x travis.sh - chmod +x travis.sh
- ./travis.sh - ./travis.sh
......
#!/usr/bin/env bash #!/usr/bin/env bash
travis_retry composer self-update # Loop over every module and theme to reset it to the original changes
travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
cd Modules
for D in `find . -maxdepth 1 -mindepth 1 -type d`
do
module=`echo "$D" | sed -e "s/^.\///"`
rm -rf $module
git reset HEAD $module
sleep .1
git checkout -- $module
done
cd ../Themes/
for D in `find . -maxdepth 1 -mindepth 1 -type d`
do
theme=`echo "$D" | sed -e "s/^.\///"`
rm -rf $theme
git reset HEAD $theme
sleep .1
git checkout -- $theme
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment