File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ binaries:
6
6
bucket : adafruit-circuit-python
7
7
file_pattern : bin/{board}/adafruit-circuitpython-{board}-*-{short_sha}.{extension}
8
8
rosie_upload :
9
- file_pattern : adafruit-circuitpython-{board}- {short_sha}.{extension}
9
+ file_pattern : adafruit-circuitpython-{board}* {short_sha}.{extension}
10
10
11
11
circuitpython_tests :
12
12
test_directories :
Original file line number Diff line number Diff line change @@ -18,8 +18,13 @@ if [ $? -ne 0 ]; then
18
18
version=` date +%Y%m%d` -` git rev-parse --short HEAD`
19
19
fi
20
20
21
- if [ " $TRAVIS_PULL_REQUEST " != " false" ]; then
22
- version=` echo $TRAVIS_PULL_REQUEST_SHA | cut -c1-7`
21
+
22
+ if [ " $TRAVIS " == " true" ]; then
23
+ sha=$TRAVIS_COMMIT
24
+ if [ " $TRAVIS_PULL_REQUEST " != " false" ]; then
25
+ version=` date +%Y%m%d` -` echo $TRAVIS_PULL_REQUEST_SHA | cut -c1-7`
26
+ sha=$TRAVIS_PULL_REQUEST_SHA
27
+ fi
23
28
fi
24
29
25
30
for board in $ATMEL_BOARDS ; do
@@ -29,10 +34,10 @@ for board in $ATMEL_BOARDS; do
29
34
cp atmel-samd/build-$board /firmware.uf2 bin/$board /adafruit-circuitpython-$board -$version .uf2
30
35
(( exit_status = exit_status || $? ))
31
36
# Only upload to Rosie if its a pull request.
32
- if [ " $TRAVIS_PULL_REQUEST " != " false " ]; then
37
+ if [ " $TRAVIS " == " true " ]; then
33
38
for rosie in $ROSIE_SETUPS ; do
34
- echo " Uploading to https://$rosie .ngrok.io/upload/$TRAVIS_PULL_REQUEST_SHA "
35
- curl -F " file=@bin/$board /adafruit-circuitpython-$board -$version .uf2" https://$rosie .ngrok.io/upload/$TRAVIS_PULL_REQUEST_SHA
39
+ echo " Uploading to https://$rosie .ngrok.io/upload/$sha "
40
+ curl -F " file=@bin/$board /adafruit-circuitpython-$board -$version .uf2" https://$rosie .ngrok.io/upload/$sha
36
41
done
37
42
fi
38
43
done
You can’t perform that action at this time.
0 commit comments