Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 04a75ec

Browse files
authored
Merge pull request #7 from arduino-cmake/feature/travis-ci
Added support for Travis-CI
2 parents 62b7f06 + 7710a8e commit 04a75ec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,27 @@ os:
55
env:
66
- ARDUINO_SDK_VERSION=1.6.10
77
- ARDUINO_SDK_VERSION=1.8.7
8+
if: branch != feature/appveyor-ci
89
addons:
910
apt:
1011
packages:
11-
- gcc-avr
1212
- binutils-avr
1313
- avr-libc
1414
- avrdude
1515
- cmake
1616
before_install:
1717
- |
1818
if [[ $TRAVIS_OS_NAME == linux ]]; then
19-
export ARDUINO_SDK_FILE="arduino-$ARDUINO_SDK_VERSION-linux32.tar.xz"
19+
export ARDUINO_SDK_FILE="arduino-$ARDUINO_SDK_VERSION-linux64.tar.xz"
2020
else
2121
export ARDUINO_SDK_FILE="arduino-$ARDUINO_SDK_VERSION-macosx.zip"
22-
brew install cmake
2322
fi
2423
- wget "https://downloads.arduino.cc/$ARDUINO_SDK_FILE" -O "$ARDUINO_SDK_FILE"
2524
- mkdir arduino-sdk
2625
- |
2726
if [[ $TRAVIS_OS_NAME == linux ]]; then
2827
tar xf "$ARDUINO_SDK_FILE" -C arduino-sdk --strip-components 1
29-
export ARDUINO_SDK_PATH="$(pwd)/arduino-sdk"
28+
export ARDUINO_SDK_PATH="$PWD/arduino-sdk"
3029
else
3130
unzip "$ARDUINO_SDK_FILE" "Arduino.app/Contents/Java/*" -d arduino-sdk
3231
export ARDUINO_SDK_PATH="$(pwd)/arduino-sdk/Arduino.app/Contents/Java"
@@ -36,7 +35,7 @@ install:
3635
- rm -rf build/*
3736
- cd build/
3837
script:
39-
- cmake -D CMAKE_TOOLCHAIN_FILE="../cmake/Arduino-Toolchain.cmake" ..
38+
- cmake -D CMAKE_TOOLCHAIN_FILE="../cmake/Arduino-Toolchain.cmake" ../examples
4039
- make
41-
after_script:
40+
after_failure:
4241
- cat CMakeFiles/CMakeOutput.log

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Arduino-CMake NG
22

33
[![AppVeyor Build](https://ci.appveyor.com/api/projects/status/github/arduino-cmake/Arduino-CMake-NG?svg=true&passingText=Windows%20-%20Passing&failingText=Windows%20-%20Failing&pendingText=Windows%20-%20Pending)](https://ci.appveyor.com/project/arduino-cmake/arduino-cmake-ng)
4+
[![Travis CI](https://img.shields.io/travis/arduino-cmake/Arduino-CMake-NG/branch=develop.svg?label=Linux and OS X &logo=travis)](https://travis-ci.org/arduino-cmake/Arduino-CMake-NG)
45

56
**Arduino-CMake** is a framework which allows developers to write Arduino-based programs using any tool that supports cmake. *Arduino-based*? There are many other frameworks out there built upon Arduino's base, such as ESP32, and **we support that**.
67
In other words, developers can use their favorite IDEs or text editors on their favorite OS to develop Arduino programs!

0 commit comments

Comments
 (0)