From 93eb3e787dbacfc38a3a1f71c23d5df9e9bfea28 Mon Sep 17 00:00:00 2001 From: jxltom Date: Wed, 25 Mar 2020 18:01:02 +0800 Subject: [PATCH 1/2] Support Arduino in Travis CI --- .travis.yml | 19 ++++++++++++++----- sonar-project.properties | 6 ------ 2 files changed, 14 insertions(+), 11 deletions(-) delete mode 100644 sonar-project.properties diff --git a/.travis.yml b/.travis.yml index 8d6b549..0cd3ed2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,19 @@ language: c +sudo: false addons: - sonarcloud: - organization: "autowp-github" - token: - secure: $SONARCLOUD_TOKEN + apt: + sources: + - llvm-toolchain-trusty-5.0 + - key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key' script: - - sonar-scanner || travis_terminate 1; \ No newline at end of file + - build_main_platforms + +before_install: + - source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh) + +cache: + directories: + - ~/arduino_ide + - ~/.arduino15/packages/ diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index 571c021..0000000 --- a/sonar-project.properties +++ /dev/null @@ -1,6 +0,0 @@ -sonar.projectKey=autowp_arduino-mcp2515 -sonar.projectName=WheelsAge Backend -sonar.projectVersion=1.0 - -sonar.sources=. - From f03b2f355cc3532d72ab1139b4b7cee3ab5fde7b Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 25 Mar 2020 13:26:39 +0300 Subject: [PATCH 2/2] Add build status badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c37cb27..6be607c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Arduino MCP2515 CAN interface library --------------------------------------------------------- - +[![Build Status](https://travis-ci.org/autowp/arduino-mcp2515.svg?branch=master)](https://travis-ci.org/autowp/arduino-mcp2515)
CAN-BUS is a common industrial bus because of its long travel distance, medium communication speed and high reliability. It is commonly found on modern machine tools and as an automotive diagnostic bus. This CAN-BUS Shield gives your Arduino/Seeeduino CAN-BUS capibility. With an OBD-II converter cable added on and the OBD-II library imported, you are ready to build an onboard diagnostic device or data logger.