TravisCI: Add building with autotools, catches bugs early as seen by issue #403
authorJerry Jacobs <jerry.jacobs@dualinventive.com>
Mon, 2 May 2016 15:01:53 +0000 (17:01 +0200)
committerJerry Jacobs <jerry.jacobs@dualinventive.com>
Mon, 2 May 2016 15:10:14 +0000 (17:10 +0200)
.travis.sh
.travis.yml
README

index cefeed142704b2ab020d5830e6abe82876f0687e..6b69c638ac94fc639c842137de4d59f1f2899e64 100755 (executable)
@@ -6,7 +6,13 @@ else
        brew install libusb
 fi
 
-mkdir build
-cd build
-cmake ..
-make
+if [ "$BUILD_SYSTEM" == "cmake" ]; then
+       mkdir build
+       cd build
+       cmake ..
+       make
+else
+       ./autogen.sh
+       ./configure
+       make
+fi
index b175bb6702103787c7f7e391ea1150f37006c324..5164d36c57361ac771c36b2400fad4caee10afb2 100644 (file)
@@ -6,7 +6,19 @@ matrix:
   include:
     - os: osx
       compiler: clang
+      env: "BUILD_SYSTEM=cmake"
+    - os: osx
+      compiler: clang
+      env: "BUILD_SYSTEM=autotools"
+    - os: linux
+      compiler: gcc
+      env: "BUILD_SYSTEM=cmake"
+    - os: linux
+      compiler: clang
+      env: "BUILD_SYSTEM=cmake"
     - os: linux
       compiler: gcc
+      env: "BUILD_SYSTEM=autotools"
     - os: linux
       compiler: clang
+      env: "BUILD_SYSTEM=autotools"
diff --git a/README b/README
index b6a6de1e4687d4570d2c088d73b5cc5758cdeb0e..da7fafa3237a17729d64aaa25767aec18b7741e5 100644 (file)
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
 Open source version of the STMicroelectronics Stlink Tools
 ==========================================================
 
-[![Build Status](https://travis-ci.org/texane/stlink.svg?branch=travis)](https://travis-ci.org/texane/stlink)
+[![Build Status](https://travis-ci.org/texane/stlink.svg?branch=master)](https://travis-ci.org/texane/stlink)
 
 ## HOWTO
 
@@ -19,9 +19,8 @@ Two different transport layers are used:
 
 ## Common requirements
 
-. libusb-1.0  (You probably already have this, but you'll need the
-development version to compile)
-. pkg-config
+* `pkg-config`
+* `libusb-1.0` (plus development headers for building, on debian based distros `libusb-1.0.0-dev` package)
 
 ## For STLINKv1
 
@@ -31,10 +30,10 @@ is tell your operating system to completely ignore it.
 Options (do one of these before you plug it in)
 
 * `modprobe -r usb-storage && modprobe usb-storage quirks=483:3744:i`
-* or *)1. add "options usb-storage quirks=483:3744:i" to /etc/modprobe.conf
-*   *)2. modprobe -r usb-storage && modprobe usb-storage
-* or *)1. cp stlink_v1.modprobe.conf /etc/modprobe.d
-*   *)2. modprobe -r usb-storage && modprobe usb-storage
+* or 1. `echo "options usb-storage quirks=483:3744:i" >> /etc/modprobe.conf`
+*    2. `modprobe -r usb-storage && modprobe usb-storage`
+* or 1. `cp stlink_v1.modprobe.conf /etc/modprobe.d`
+*    2. `modprobe -r usb-storage && modprobe usb-storage`
 
 ## For STLINKv2