travis: make clean before building
authorLudovic Rousseau <ludovic.rousseau@free.fr>
Wed, 4 Jan 2017 16:51:04 +0000 (17:51 +0100)
committerLudovic Rousseau <ludovic.rousseau@free.fr>
Wed, 4 Jan 2017 16:51:04 +0000 (17:51 +0100)
Call "make clean" to be sure the compilation will be done even if some
files were already compiled.

The problem was that the travis script does a double ./configure + build
on Linux. The second build just did nothing since the files were already
compiled.

.travis.yml

index eb08224..bb9e47a 100644 (file)
@@ -46,6 +46,6 @@ before_install:
     - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew upgrade automake libtool ; true; fi
 
 script:
-    - ./autogen.sh && make -j4
-    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./travis-autogen.sh --disable-udev && make -j4; fi
+    - ./autogen.sh && make clean && make -j4
+    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./travis-autogen.sh --disable-udev && make clean && make -j4; fi
     - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd Xcode && xcodebuild -project libusb.xcodeproj ; fi