Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
651
Issues
651
List
Boards
Labels
Service Desk
Milestones
Merge Requests
182
Merge Requests
182
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
5840a481
Commit
5840a481
authored
Sep 23, 2016
by
Jakub Jirutka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
travis: use only repositories at same or higher level than target repo
parent
170b830d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
.travis/build-pkgs
.travis/build-pkgs
+20
-0
.travis/common.sh
.travis/common.sh
+1
-0
.travis/install-alpine
.travis/install-alpine
+1
-1
.travis/repositories
.travis/repositories
+0
-3
No files found.
.travis/build-pkgs
View file @
5840a481
...
...
@@ -31,6 +31,24 @@ changed_abuilds() {
ap builddirs
-d
"
$(
pwd
)
/
$repo
"
$aports
2>/dev/null | xargs
-I
%
basename
%
}
# Replaces /etc/apk/repositories with repositories at $MIRROR_URI that are on
# the same or higher level than the given repo (main > community > testing)
# and after that runs `apk update`.
#
# $1: the target repository; main, community, or testing
set_repositories_for
()
{
local
target_repo
=
"
$1
"
local
repos_file
=
'/etc/apk/repositories'
printf
''
>
$repos_file
local
repo
;
for
repo
in
main community testing
;
do
printf
'%s\n'
"
$MIRROR_URI
/
$repo
"
>>
$repos_file
[
"
$repo
"
=
"
$target_repo
"
]
&&
break
done
apk update
}
cd
"
$CLONE_DIR
"
...
...
@@ -53,6 +71,8 @@ echo 'Diffstat:'
git
--no-pager
diff
--color
--stat
"
$commit_range
"
for
repo
in
$(
changed_repos
"
$commit_range
"
)
;
do
set_repositories_for
"
$repo
"
for
pkgname
in
$(
changed_abuilds
"
$repo
"
"
$commit_range
"
)
;
do
qname
=
"
$repo
/
$pkgname
"
...
...
.travis/common.sh
View file @
5840a481
...
...
@@ -3,6 +3,7 @@
readonly
ALPINE_ROOT
=
'/mnt/alpine'
readonly
ALPINE_USER
=
'alpine'
readonly
CLONE_DIR
=
"
${
CLONE_DIR
:-
$(
pwd
)
}
"
readonly
MIRROR_URI
=
'http://dl-cdn.alpinelinux.org/alpine/edge'
# Runs commands inside the Alpine chroot.
alpine_run
()
{
...
...
.travis/install-alpine
View file @
5840a481
...
...
@@ -21,8 +21,8 @@ title 'Installing Alpine Linux'
mkdir
-p
"
$ALPINE_ROOT
"
/etc/apk
cd
"
$ALPINE_ROOT
"
echo
"
$MIRROR_URI
/main"
>
etc/apk/repositories
cp
-R
"
$CLONE_DIR
"
/.travis/keys etc/apk/keys
cp
"
$CLONE_DIR
"
/.travis/repositories etc/apk/repositories
cp
/etc/resolv.conf etc/resolv.conf
/tmp/sbin/apk.static
\
...
...
.travis/repositories
deleted
100644 → 0
View file @
170b830d
http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing
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