Compile the Blink example for all boards using Travis

This commit is contained in:
Kristian Sloth Lauszus 2017-10-17 18:19:30 +02:00
parent 2134346027
commit da82c38490
2 changed files with 22 additions and 1 deletions

20
.travis.yml Normal file
View File

@ -0,0 +1,20 @@
language: c
sudo: false
before_install:
- source <(curl -SLs https://raw.githubusercontent.com/fede2cr/travis-ci-arduino/master/install.sh)
install:
- arduino --pref "boardsmanager.additional.urls=https://raw.githubusercontent.com/Lauszus/Sanguino/master/package_lauszus_sanguino_index.json" --save-prefs
- arduino --install-boards Sanguino:avr
- export BLINK=$(find $HOME/arduino_ide -type f -name 'Blink.ino' -print -quit)
- echo "Compiling \"$BLINK\""
script:
- arduino --verify --board Sanguino:avr:sanguino:cpu=atmega644 $BLINK
- arduino --verify --board Sanguino:avr:sanguino:cpu=atmega644_8m $BLINK
- arduino --verify --board Sanguino:avr:sanguino:cpu=atmega644p $BLINK
- arduino --verify --board Sanguino:avr:sanguino:cpu=atmega644p_8m $BLINK
- arduino --verify --board Sanguino:avr:sanguino:cpu=atmega1284p $BLINK
- arduino --verify --board Sanguino:avr:sanguino:cpu=atmega1284p_8m $BLINK

View File

@ -2,6 +2,7 @@
The code is released under the GNU General Public License.
_________
[![Build Status](https://travis-ci.org/Lauszus/Sanguino.svg?branch=master)](https://travis-ci.org/Lauszus/Sanguino)
This is a Sanguino third-party hardware add-on for the Arduino IDE.
@ -21,4 +22,4 @@ Since the ATmega1284 is not supported by Avrdude. You will have to burn the boot
Also check out the following site for more information: <http://blog.stevemarple.co.uk/2013/01/how-to-use-atmel-atmega1284-non-p.html>.
For more information see the following site: [http://www.arduino.cc/en/Guide/Environment#thirdpartyhardware](http://www.arduino.cc/en/Guide/Environment#thirdpartyhardware)
or send me an email at <a href="mailto:lauszus@gmail.com?Subject=Sanguino">lauszus@gmail.com</a>.
or send me an email at <a href="mailto:lauszus@gmail.com?Subject=Sanguino">lauszus@gmail.com</a>.