Skip to content

Commit 6e970a0

Browse files
committed
fix path problem for artifacts, update description, only build on tags
1 parent f894f93 commit 6e970a0

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_js:
44
git:
55
submodules: true
66
depth: false
7+
if: tag IS blank
78
services:
89
- docker
910
before_install:

PUSH_REQUIREMENTS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ v0.2.3:
3838

3939
When pushes are done on other branches, nothing gets deployed anywhere, but the build can still fail if:
4040
1. There are compilation errors in the firmware build - which is a good way to see if changing something in the code breaks the build.
41-
1. The changelog is not updated to the next version.
41+
1. The changelog is not updated to the next version.
42+
43+
## Avoiding the CI Build
44+
45+
If you wish to skip the build on a commit, just add to its commit message `[ci skip]`. Note that in case multiple commits are pushed together, the skip command is effective only if it is present in the commit message of the HEAD commit.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
## GiggleBot MicroPython for the BBC Micro:bit
1+
## GiggleBot MicroPython for the BBC Micro:bit
2+
[![Build Status](https://travis-ci.org/RobertLucian/micropython-gigglebot.svg?branch=master)](https://travis-ci.org/RobertLucian/micropython-gigglebot)
23

34
This is the source code for MicroPython that's running on the BBC micro:bit + GiggleBot robot.
45

build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ docker container cp gupy-container:/src/tmp/ build/
3737
# update cache image on docker hub
3838
docker image push $IMAGE_NAME
3939

40-
pushd build
41-
tar -cvzf $(cat $TRAVIS_BUILD_DIR/integration/tag)-mpy-modules.tar.gz tmp/*.mpy
42-
tar -cvzf $(cat $TRAVIS_BUILD_DIR/integration/tag)-py-modules.tar.gz tmp/*.py
40+
pushd build/tmp
41+
tar -cvzf $(cat $TRAVIS_BUILD_DIR/integration/tag)-mpy-modules.tar.gz *.mpy
42+
tar -cvzf $(cat $TRAVIS_BUILD_DIR/integration/tag)-py-modules.tar.gz *.py
43+
cd ..
44+
mv tmp/*.tar.gz .
4345
mv firmware.hex $(cat $TRAVIS_BUILD_DIR/integration/tag)-dexterindustries-gb-firmware.hex
4446
popd

0 commit comments

Comments
 (0)