Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
62420fb9
You need to sign in or sign up before continuing.
Commit
62420fb9
authored
8 years ago
by
Cenk Gündoğan
Browse files
Options
Downloads
Patches
Plain Diff
travis: make build_and_test.sh unrelated to travis
parent
19907266
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dist/tools/ci/build_and_test.sh
+1
-16
1 addition, 16 deletions
dist/tools/ci/build_and_test.sh
with
1 addition
and
16 deletions
dist/tools/
travis-scripts
/build_and_test.sh
→
dist/tools/
ci
/build_and_test.sh
+
1
−
16
View file @
62420fb9
...
@@ -56,21 +56,6 @@ then
...
@@ -56,21 +56,6 @@ then
RESULT
=
0
RESULT
=
0
RECALL
=
"
$1
"
RECALL
=
"
$1
"
if
git diff
${
CI_BASE_BRANCH
}
HEAD
--
.travis.yml &> /dev/null
;
then
# check if .travis.yml was changed in the current PR and skip if so
if
!
git diff
--name-only
$(
git merge-base HEAD
${
CI_BASE_BRANCH
}
)
..HEAD
--
\
.travis.yml &> 1
;
then
echo
"=============================================================="
>
&2
echo
-e
"
\0
33[1;31m.travis.yml differs in upstream.
\0
33[0m"
echo
-e
"
\0
33[1;31mPlease rebase your PR to current upstream or expect errors!!!!
\0
33[0m"
>
&2
echo
" git fetch https://github.com/RIOT-OS/RIOT
${
CI_BASE_BRANCH
}
"
>
&2
echo
" git rebase FETCH_HEAD"
>
&2
echo
" git push -f origin
$(
git rev-parse
--abbrev-ref
HEAD
)
"
>
&2
echo
"=============================================================="
>
&2
return
1
fi
fi
if
[
"
$RECALL
"
!=
"recall"
]
;
then
if
[
"
$RECALL
"
!=
"recall"
]
;
then
if
git diff
${
CI_BASE_BRANCH
}
HEAD
--
"
$0
"
&> /dev/null
;
then
if
git diff
${
CI_BASE_BRANCH
}
HEAD
--
"
$0
"
&> /dev/null
;
then
git rebase
${
CI_BASE_BRANCH
}
||
git rebase
--abort
git rebase
${
CI_BASE_BRANCH
}
||
git rebase
--abort
...
@@ -124,7 +109,7 @@ then
...
@@ -124,7 +109,7 @@ then
# - make -C ./tests/unittests all test BOARD=qemu-i386 || exit
# - make -C ./tests/unittests all test BOARD=qemu-i386 || exit
fi
fi
BASE_BRANCH
=
"
${
TRAVIS_BRANCH
:-${
CI_BASE_BRANCH
}
}
"
BASE_BRANCH
=
"
${
CI_BASE_BRANCH
}
"
./dist/tools/compile_test/compile_test.py
$BASE_BRANCH
./dist/tools/compile_test/compile_test.py
$BASE_BRANCH
set_result
$?
set_result
$?
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment