Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
8fe631f9
Commit
8fe631f9
authored
9 years ago
by
Cristian Maglie
Browse files
Options
Downloads
Patches
Plain Diff
Added pull request builder scripts
parent
8c4c3b97
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
extras/pack.pullrequest.bash
+31
-0
31 additions, 0 deletions
extras/pack.pullrequest.bash
extras/pack.release.bash
+1
-1
1 addition, 1 deletion
extras/pack.release.bash
extras/package_index.json.PR.template
+54
-0
54 additions, 0 deletions
extras/package_index.json.PR.template
with
86 additions
and
1 deletion
extras/pack.pullrequest.bash
0 → 100755
+
31
−
0
View file @
8fe631f9
#!/bin/bash -ex
PR_NUMBER
=
$1
VERSION
=
PR-
$PR_NUMBER
PWD
=
`
pwd
`
FOLDERNAME
=
`
basename
$PWD
`
THIS_SCRIPT_NAME
=
`
basename
$0
`
FILENAME
=
package_samd-PR-
$PR_NUMBER
.tar.bz2
rm
-f
$FILENAME
# Change name in platform.txt
sed
-i
"s/name=.*/name=SAMD Pull request Build
${
PR_NUMBER
}
/"
platform.txt
cd
..
tar
--transform
"s|
$FOLDERNAME
|samd-PR-
$PR_NUMBER
|g"
--exclude
=
extras/
**
--exclude
=
.git
*
--exclude
=
.idea
-cjf
$FILENAME
$FOLDERNAME
cd
-
mv
../
$FILENAME
.
CHKSUM
=
`
sha256sum
$FILENAME
|
awk
'{ print $1 }'
`
SIZE
=
`
wc
-c
$FILENAME
|
awk
'{ print $1 }'
`
cat
extras/package_index.json.PR.template |
sed
s/%%PR_NUMBER%%/
${
PR_NUMBER
}
/ |
sed
s/%%VERSION%%/
${
VERSION
}
/ |
sed
s/%%FILENAME%%/
${
FILENAME
}
/ |
sed
s/%%CHECKSUM%%/
${
CHKSUM
}
/ |
sed
s/%%SIZE%%/
${
SIZE
}
/
>
package_samd-PR-
${
PR_NUMBER
}
_index.json
This diff is collapsed.
Click to expand it.
pack
.bash
→
extras/pack.release
.bash
+
1
−
1
View file @
8fe631f9
...
@@ -9,7 +9,7 @@ THIS_SCRIPT_NAME=`basename $0`
...
@@ -9,7 +9,7 @@ THIS_SCRIPT_NAME=`basename $0`
rm
-f
samd-
$VERSION
.tar.bz2
rm
-f
samd-
$VERSION
.tar.bz2
cd
..
cd
..
tar
--transform
"s|
$FOLDERNAME
|
$VERSION
|g"
--exclude
=
.git
--exclude
=
.
idea
--exclude
=
$THIS_SCRIPT_NAME
-cjf
samd-
$VERSION
.tar.bz2
$FOLDERNAME
tar
--transform
"s|
$FOLDERNAME
|
$
FOLDERNAME
-
$
VERSION
|g"
--exclude
=
extras/
**
--exclude
=
.
git
*
--exclude
=
.idea
-cjf
samd-
$VERSION
.tar.bz2
$FOLDERNAME
cd
-
cd
-
mv
../samd-
$VERSION
.tar.bz2
.
mv
../samd-
$VERSION
.tar.bz2
.
...
...
This diff is collapsed.
Click to expand it.
extras/package_index.json.PR.template
0 → 100644
+
54
−
0
View file @
8fe631f9
{
"packages": [
{
"name": "arduino-beta",
"maintainer": "Arduino Betatesting",
"websiteURL": "http://www.arduino.cc/",
"email": "packages@arduino.cc",
"help": {
"online": "http://www.arduino.cc/en/Reference/HomePage"
},
"platforms": [
{
"name": "Arduino SAMD core - Pull request build num. %%PR_NUMBER%%",
"architecture": "samd",
"version": "%%VERSION%%",
"category": "Arduino",
"url": "http://downloads.arduino.cc/PR/samd/%%FILENAME%%",
"archiveFileName": "%%FILENAME%%",
"checksum": "SHA-256:%%CHECKSUM%%",
"size": "%%SIZE%%",
"boards": [
{
"name": "Arduino Zero"
}
],
"toolsDependencies": [
{
"packager": "arduino",
"name": "arm-none-eabi-gcc",
"version": "4.8.3-2014q1"
},
{
"packager": "arduino",
"name": "bossac",
"version": "1.5-arduino"
},
{
"packager": "arduino",
"name": "openocd",
"version": "0.9.0-arduino"
},
{
"packager": "arduino",
"name": "CMSIS",
"version": "4.0.0-atmel"
}
]
}
],
"tools": [
]
}
]
}
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