From 78396bf0da7039bc291bf99d1fefed2ff6d8cd52 Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Tue, 25 Jul 2017 16:52:15 +0100 Subject: adding Travis support - first attempt at config file using Docker --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c12ad24 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +sudo: required + +services: +- docker + +language: C + +before_install: +- docker build -t novation-launchpad-pro-dev . +- docker run -it -v $(pwd):/launchpad-pro novation-launchpad-pro-dev + +script: +- make -- cgit v1.2.1 From 55bda258f2262dc9cbbdcbdea3801b4f65fdf2a8 Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Wed, 26 Jul 2017 11:50:51 +0100 Subject: run docker headless (duh) in Travis builds --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c12ad24..d65783a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ language: C before_install: - docker build -t novation-launchpad-pro-dev . -- docker run -it -v $(pwd):/launchpad-pro novation-launchpad-pro-dev +- docker run -d -v $(pwd):/launchpad-pro novation-launchpad-pro-dev script: - make -- cgit v1.2.1 From b7f424838faa67cfdcf4c7bbfb85665432af92a4 Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Wed, 26 Jul 2017 11:57:15 +0100 Subject: actually run the make command when running docker (duh, again) --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d65783a..dba3e70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ language: C before_install: - docker build -t novation-launchpad-pro-dev . -- docker run -d -v $(pwd):/launchpad-pro novation-launchpad-pro-dev +- docker run -d -v $(pwd):/launchpad-pro novation-launchpad-pro-dev "make" script: - make -- cgit v1.2.1 From ea50d522ef72143377b3748e296b8ca0da8f535e Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Wed, 26 Jul 2017 12:05:23 +0100 Subject: test for existence of the sysex image to validate build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dba3e70..45ed81e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ before_install: - docker run -d -v $(pwd):/launchpad-pro novation-launchpad-pro-dev "make" script: -- make +- test -f build/launchpad_pro.syx -- cgit v1.2.1 From 691c769178f1ab9258f394d10d49c92818a5c9b5 Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Wed, 26 Jul 2017 12:12:21 +0100 Subject: adding docker build status, and debug code to test the build --- .travis.yml | 2 +- README.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 45ed81e..c5d586e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ before_install: - docker run -d -v $(pwd):/launchpad-pro novation-launchpad-pro-dev "make" script: -- test -f build/launchpad_pro.syx +- pwd; ls; ls build; test -f build/launchpad_pro.syx diff --git a/README.md b/README.md index 98b25cf..cb9d039 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/dvhdr/launchpad-pro.svg?branch=master)](https://travis-ci.org/dvhdr/launchpad-pro) + # Launchpad Pro Open source firmware for the Novation Launchpad Pro grid controller! By customising this code, you can: -- cgit v1.2.1 From e7288e4368d5c45b7a29ab985bfd53bc3c663b97 Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Wed, 26 Jul 2017 12:17:43 +0100 Subject: don't detach docker for builds (triple duh) so we can test the result --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c5d586e..3f80e7f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ language: C before_install: - docker build -t novation-launchpad-pro-dev . -- docker run -d -v $(pwd):/launchpad-pro novation-launchpad-pro-dev "make" +- docker run -v $(pwd):/launchpad-pro novation-launchpad-pro-dev "make" script: -- pwd; ls; ls build; test -f build/launchpad_pro.syx +- test -f build/launchpad_pro.syx -- cgit v1.2.1