Skip to content

Commit

Permalink
set up travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinabrokwa committed Sep 23, 2017
1 parent 08cc822 commit 37b56e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
sudo: required
addons:
apt:
packages:
- build-essential
- gcc-avr
- avr-libc

services:
- docker
script: make
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
all:
avr-gcc -g -Os -mmcu=atmega32 -c blink.c
avr-gcc -g -Os -mmcu=atmega32 -c blink.cpp
avr-gcc -g -mmcu=atmega32 -o blink.elf blink.o
avr-objcopy -j .text -j .data -O ihex blink.elf blink.hex

Expand All @@ -8,5 +8,8 @@ docker-build:
docker build -t firmware-builder .
docker run -it -v `pwd`/:/firmware firmware-builder /bin/bash -c "cd firmware; make"

get-deps:
sudo apt-get install -y build-essential gcc-avr avr-libc

clean:
rm -f *.o *.elf *.hex
File renamed without changes.

0 comments on commit 37b56e3

Please sign in to comment.