From ee93585ab513c7119ae70454b465f4f9be84305e Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sun, 6 Jan 2019 14:45:14 +1300 Subject: [PATCH 1/3] Added TravisCI configuration --- .travis.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dc9a662 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: c +env: + global: + - ARDUINO_IDE_VERSION="1.8.5" +before_install: + - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16" + - sleep 3 + - export DISPLAY=:1.0 + - wget http://downloads.arduino.cc/arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz + - tar xf arduino-$ARDUINO_IDE_VERSION-linux64.tar.xz + - sudo mv arduino-$ARDUINO_IDE_VERSION /usr/local/share/arduino + - sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino +install: + - arduino --install-library "SIM808" + - arduino --install-library "E24" + - arduino --install-library "Low-Power" + - arduino --install-library "ArduinoLog" + - arduino --install-library "MD_DS3231" +script: + - arduino --verify --board arduino:avr:uno $PWD/src/GpsTracker.ino + notifications: + email: + on_success: change + on_failure: change \ No newline at end of file From 02c94e0119cd272a333eb3da113720cb2eeb112f Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sun, 6 Jan 2019 15:30:17 +1300 Subject: [PATCH 2/3] Added MD_DS3231 custom configuration and sensitive configuration file generation --- .travis.yml | 5 ++++- README.md | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dc9a662..e8da337 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,12 @@ install: - arduino --install-library "Low-Power" - arduino --install-library "ArduinoLog" - arduino --install-library "MD_DS3231" +before_script: + - sed -E "s/^#define ENABLE_(12H|DOW|DYNAMIC_CENTURY) 1/#define ENABLE_\1 0/" -i /usr/local/share/arduino/libraries/MD_DS3231/src/MD_DS3231.h # Disabling MD_DS3231 unwanted features + - "tail --line=+`sed -n '/\/\/ #pragma once/=' src/config/User.h` src/config/User.h | sed 's/^\/\/ //' > src/config/Sensitive.h" # Using the example configuration file for compilation script: - arduino --verify --board arduino:avr:uno $PWD/src/GpsTracker.ino - notifications: +notifications: email: on_success: change on_failure: change \ No newline at end of file diff --git a/README.md b/README.md index d6d3731..6ae3705 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # High autonomy GPS tracker. +[![Build Status](https://travis-ci.org/blemasle/gpstracker-firmware.svg?branch=master)](https://travis-ci.org/blemasle/gpstracker-firmware) +[![License](https://img.shields.io/badge/license-MIT%20License-blue.svg)](http://doge.mit-license.org) This project aims to provides a GPS tracker based on an Arduino Pro mini as the central unit. Battery saving has been incorporated into every step of the design. A custom designed [PCB](https://github.com/blemasle/gpstracker-pcb) is available to avoid using poorly power efficient boards. From b6dab2ae0dd83a5e08caa95a2917f7b14d98afc6 Mon Sep 17 00:00:00 2001 From: Bertrand Lemasle Date: Sun, 6 Jan 2019 15:44:46 +1300 Subject: [PATCH 3/3] Using git repository instead of lib installation for SIM808 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e8da337..145a1ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ before_install: - sudo mv arduino-$ARDUINO_IDE_VERSION /usr/local/share/arduino - sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino install: - - arduino --install-library "SIM808" + - git clone https://github.com/blemasle/arduino-sim808 /usr/local/share/arduino/libraries/SIM808 # Until the lib is published to Arduino Library Manager - arduino --install-library "E24" - arduino --install-library "Low-Power" - arduino --install-library "ArduinoLog"