Skip to content

Commit

Permalink
fix path problem for artifacts, update description, only build on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertLucian committed Dec 6, 2018
1 parent f894f93 commit 6e970a0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_js:
git:
submodules: true
depth: false
if: tag IS blank
services:
- docker
before_install:
Expand Down
6 changes: 5 additions & 1 deletion PUSH_REQUIREMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ v0.2.3:

When pushes are done on other branches, nothing gets deployed anywhere, but the build can still fail if:
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.
1. The changelog is not updated to the next version.
1. The changelog is not updated to the next version.

## Avoiding the CI Build

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.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## GiggleBot MicroPython for the BBC Micro:bit
## GiggleBot MicroPython for the BBC Micro:bit
[![Build Status](https://travis-ci.org/RobertLucian/micropython-gigglebot.svg?branch=master)](https://travis-ci.org/RobertLucian/micropython-gigglebot)

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

Expand Down
8 changes: 5 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ docker container cp gupy-container:/src/tmp/ build/
# update cache image on docker hub
docker image push $IMAGE_NAME

pushd build
tar -cvzf $(cat $TRAVIS_BUILD_DIR/integration/tag)-mpy-modules.tar.gz tmp/*.mpy
tar -cvzf $(cat $TRAVIS_BUILD_DIR/integration/tag)-py-modules.tar.gz tmp/*.py
pushd build/tmp
tar -cvzf $(cat $TRAVIS_BUILD_DIR/integration/tag)-mpy-modules.tar.gz *.mpy
tar -cvzf $(cat $TRAVIS_BUILD_DIR/integration/tag)-py-modules.tar.gz *.py
cd ..
mv tmp/*.tar.gz .
mv firmware.hex $(cat $TRAVIS_BUILD_DIR/integration/tag)-dexterindustries-gb-firmware.hex
popd

0 comments on commit 6e970a0

Please sign in to comment.