Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nord Site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
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
Freifunk Nord
Nord Site
Commits
c1a53806
Commit
c1a53806
authored
7 years ago
by
rubo77
Browse files
Options
Downloads
Patches
Plain Diff
travis: validierung der modules, failt wenn ein branch oder commit nicht existiert
parent
08bbe1b0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README
+13
-5
13 additions, 5 deletions
README
tests/validate_site.sh
+65
-1
65 additions, 1 deletion
tests/validate_site.sh
with
78 additions
and
6 deletions
README
+
13
−
5
View file @
c1a53806
Doku: https://gluon.readthedocs.org/en/latest/
# Validation
You can validate your changes to this repository by calling the validate_site.sh file with
tests/validate_site.sh
# Dokumetation
https://gluon.readthedocs.org/en/latest/
Gluon Version auf der die Freifunk Nord Firmware basiert:
* 2017.1.1 - Gluon LEDE 2017.1.1
Download der Firmware
:
#
Download der Firmware
* https://nord.freifunk.net/firmware.html
Firmware selber bauen
:
#
Firmware selber bauen
1. Vorbereitung:
1.1 Abhängigkeiten installieren
...
...
@@ -37,7 +45,7 @@ Firmware selber bauen:
make -j8 GLUON_TARGET=ar71xx-generic ##-j $ZAHL$ = Anzahl der CPU Kerne
Mögliche Targets
:
##
Mögliche Targets
ar71xx-generic
ar71xx-mikrotik
...
...
@@ -48,7 +56,7 @@ x86-64
x86-generic
x86-geode
# Nur mit 802.11s
:
#
# Nur mit 802.11s
brcm2708-bcm2708
brcm2708-bcm2709
...
...
This diff is collapsed.
Click to expand it.
tests/validate_site.sh
100644 → 100755
+
65
−
1
View file @
c1a53806
#!/bin/bash
# validate_site.sh checks if the site.conf is valid json
GLUON_BRANCH
=
'v2017.1.1'
P
=
$(
pwd
)
echo
"####### validating
$P
/site.conf ..."
GLUON_SITEDIR
=
"."
lua5.1 tests/site_config.lua
bash
-n
make-release.sh
echo
"####### validating
$P
/make-release.sh ..."
bash
-n
$P
/make-release.sh
echo
"####### validating
$P
/modules ..."
source
$P
/modules
testpath
=
/tmp/site-validate
rm
-Rf
$testpath
mkdir
-p
$testpath
/packages
cd
$testpath
/packages
for
feed
in
$GLUON_SITE_FEEDS
;
do
echo
"checking PACKAGES_
${
feed
^^
}
_REPO ..."
repo_var
=
$(
echo
PACKAGES_
${
feed
^^
}
_REPO
)
commit_var
=
$(
echo
PACKAGES_
${
feed
^^
}
_COMMIT
)
branch_var
=
$(
echo
PACKAGES_
${
feed
^^
}
_BRANCH
)
repo
=
${
!repo_var
}
commit
=
${
!commit_var
}
branch
=
${
!branch_var
}
if
[
"
$repo
"
==
""
]
;
then
echo
"repo
$repo_var
missing"
exit
1
fi
if
[
"
$commit
"
==
""
]
;
then
echo
"commit
$commit_var
missing"
exit
1
fi
if
[
"
$branch
"
==
""
]
;
then
echo
"branch
$branch_var
missing"
exit
1
fi
git clone
-b
"
$branch
"
--single-branch
"
$repo
"
$feed
if
[
"
$?
"
!=
"0"
]
;
then
exit
1
;
fi
cd
$feed
git checkout
"
$commit
"
if
[
"
$?
"
!=
"0"
]
;
then
exit
1
;
fi
cd
-
done
cd
$testpath
git init gluon
cd
gluon
git remote add origin https://github.com/freifunk-gluon/gluon
git config core.sparsecheckout
true
echo
"package/*"
>>
.git/info/sparse-checkout
git pull
--depth
=
1 origin
$GLUON_BRANCH
cp
-a
package/
$testpath
/packages
cd
$testpath
/packages/package
echo
"####### validating GLUON_SITE_PACKAGES from
$P
/site.mk ..."
# ignore standard packages:
sed
'/GLUON_RELEASE/,$d'
$P
/site.mk | egrep
-v
'(#|G|iwinfo|iptables|haveged)'
>
$testpath
/site.mk.sh
sed
-i
's/\s\\$//g;/^$/d'
$testpath
/site.mk.sh
sed
-i
's/gluon-mesh-batman-adv-1[45]/gluon-mesh-batman-adv/g'
$testpath
/site.mk.sh
cat
$testpath
/site.mk.sh |
while
read
packet
;
do
echo
"check
$packet
..."
if
[
"
$(
find
$testpath
/packages/
-type
d
-name
"
$packet
"
)
"
'!='
''
]
;
then
: find found something
else
echo
"ERROR:
$packet
missing"
exit
1
fi
done
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