Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
7f26c62a
Commit
7f26c62a
authored
Sep 11, 2016
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding custom travis bash script to reset changes from repository after composer
parent
e67b199e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
.travis.yml
.travis.yml
+2
-0
travis.sh
travis.sh
+25
-2
No files found.
.travis.yml
View file @
7f26c62a
...
@@ -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
...
...
travis.sh
100644 → 100755
View file @
7f26c62a
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment