Skip to content

Commit ea59a7b

Browse files
committed
Added hourly build script
1 parent cc97820 commit ea59a7b

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

extras/pack.hourlybuild.bash

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash -ex
2+
3+
BUILD_NUMBER=$1
4+
CURR_TIME=`date "+%Y-%m-%d %H:%M"`
5+
CURR_TIME_SED=`date "+%Y\\-%m\\-%d %H:%M"`
6+
VERSION=9.9.9-Hourly
7+
8+
PWD=`pwd`
9+
FOLDERNAME=`basename $PWD`
10+
THIS_SCRIPT_NAME=`basename $0`
11+
FILENAME=package_samd-hourly-b${BUILD_NUMBER}.tar.bz2
12+
13+
rm -f $FILENAME
14+
15+
# Change name in platform.txt
16+
sed -i "s/name=.*/name=SAMD Hourly Build ${BUILD_NUMBER} (${CURR_TIME})/" platform.txt
17+
18+
cd ..
19+
tar --transform "s|$FOLDERNAME|samd-hourly_b${BUILD_NUMBER}|g" --exclude=extras/** --exclude=.git* --exclude=.idea -cjf $FILENAME $FOLDERNAME
20+
cd -
21+
22+
mv ../$FILENAME .
23+
24+
CHKSUM=`sha256sum $FILENAME | awk '{ print $1 }'`
25+
SIZE=`wc -c $FILENAME | awk '{ print $1 }'`
26+
27+
cat extras/package_index.json.Hourly.template |
28+
sed "s/%%BUILD_NUMBER%%/${BUILD_NUMBER}/" |
29+
sed "s/%%CURR_TIME%%/${CURR_TIME_SED}/" |
30+
sed "s/%%VERSION%%/${VERSION}/" |
31+
sed "s/%%FILENAME%%/${FILENAME}/" |
32+
sed "s/%%CHECKSUM%%/${CHKSUM}/" |
33+
sed "s/%%SIZE%%/${SIZE}/" > package_samd-hourly-build_index.json
34+
+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"packages": [
3+
{
4+
"name": "arduino-beta",
5+
"maintainer": "Arduino Betatesting",
6+
"websiteURL": "http://www.arduino.cc/",
7+
"email": "[email protected]",
8+
"help": {
9+
"online": "http://www.arduino.cc/en/Reference/HomePage"
10+
},
11+
"platforms": [
12+
{
13+
"name": "Arduino SAMD core - Hourly build",
14+
"architecture": "samd",
15+
"version": "%%VERSION%%",
16+
"category": "Arduino",
17+
"url": "http://downloads.arduino.cc/Hourly/samd/%%FILENAME%%",
18+
"archiveFileName": "%%FILENAME%%",
19+
"checksum": "SHA-256:%%CHECKSUM%%",
20+
"size": "%%SIZE%%",
21+
"boards": [
22+
{
23+
"name": "Arduino Zero"
24+
}
25+
],
26+
"toolsDependencies": [
27+
{
28+
"packager": "arduino",
29+
"name": "arm-none-eabi-gcc",
30+
"version": "4.8.3-2014q1"
31+
},
32+
{
33+
"packager": "arduino",
34+
"name": "bossac",
35+
"version": "1.5-arduino"
36+
},
37+
{
38+
"packager": "arduino",
39+
"name": "openocd",
40+
"version": "0.9.0-arduino"
41+
},
42+
{
43+
"packager": "arduino",
44+
"name": "CMSIS",
45+
"version": "4.0.0-atmel"
46+
}
47+
]
48+
}
49+
],
50+
"tools": [
51+
]
52+
}
53+
]
54+
}

0 commit comments

Comments
 (0)