├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md └── blink └── src ├── blink.ino └── util.ino /.gitignore: -------------------------------------------------------------------------------- 1 | blink/.build/ 2 | blink/lib/ 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Compiled Dynamic libraries 11 | *.so 12 | *.dylib 13 | *.dll 14 | 15 | # Compiled Static libraries 16 | *.lai 17 | *.la 18 | *.a 19 | *.lib 20 | 21 | # Executables 22 | *.exe 23 | *.out 24 | *.app 25 | 26 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: python 2 | python: 3 | - "2.7" 4 | 5 | install: 6 | - python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)" 7 | 8 | script: 9 | - platformio ci blink/src --board=uno --board=due --board=teensy31 --board=esp01 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 kyab 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.org/kyab/travis-test-arduino.svg?branch=master)](https://travis-ci.org/kyab/travis-test-arduino) 2 | 3 | travis-test-arduino 4 | =================== 5 | 6 | Test Project to do Travis-CI for Arduino-based sketch using [PlatformIO](http://platformio.org) and these boards: 7 | 8 | * Arduino UNO 9 | * Arduino Due 10 | * Teensy 3.1 11 | * Espressif ESP8266 12 | 13 | More boards are listed in [PlatformIO Boards Explorer](http://platformio.org/#!/boards) 14 | 15 | For more detailed information as for Continuous Integration, please visit 16 | documentation http://docs.platformio.org/en/latest/ci/index.html 17 | -------------------------------------------------------------------------------- /blink/src/blink.ino: -------------------------------------------------------------------------------- 1 | int led = 13; 2 | 3 | extern int sum(int a, int b); 4 | 5 | void setup() { 6 | 7 | Serial.begin(9600); 8 | Serial.println("hello"); 9 | Serial.print(sum(99,1),DEC); 10 | pinMode(led, OUTPUT); 11 | 12 | } 13 | 14 | void loop() { 15 | // put your main code here, to run repeatedly: 16 | digitalWrite(led, HIGH); 17 | delay(1000); 18 | digitalWrite(led, LOW); 19 | delay(1000); 20 | } 21 | -------------------------------------------------------------------------------- /blink/src/util.ino: -------------------------------------------------------------------------------- 1 | 2 | int sum(int a, int b){ 3 | return a + b; 4 | } 5 | --------------------------------------------------------------------------------