contrib: Make Meson build non optional
authorLzu Tao <taolzu@gmail.com>
Fri, 26 Apr 2019 18:41:03 +0000 (01:41 +0700)
committerLzu Tao <taolzu@gmail.com>
Fri, 26 Apr 2019 18:41:03 +0000 (01:41 +0700)
* Update ninja version to 1.9 in CI.
* Update default project version in meson script.

.travis.yml
contrib/meson/meson.build

index c684b6c..8ebcdfa 100644 (file)
@@ -172,13 +172,13 @@ matrix:
         - tests/checkTag "$TRAVIS_BRANCH"
 
     - name: (Xenial) Meson + clang build
-      env: ALLOW_FAILURES=true
+      #env: ALLOW_FAILURES=true
       dist: xenial
       language: cpp
       compiler: clang
       install:
         - sudo apt-get install -qq python3 tree
-        - curl -o ~/ninja.zip -L 'https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip'
+        - curl -o ~/ninja.zip -L 'https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip'
             && unzip ~/ninja.zip -d ~/.local/bin
         - curl -o ~/get-pip.py 'https://bootstrap.pypa.io/get-pip.py'
             && python3 ~/get-pip.py --user
@@ -191,7 +191,7 @@ matrix:
             -Ddefault_library=both
             -Dbuild_{programs,contrib,tests,examples}=true
             contrib/meson build
-        - cd build
+        - pushd build
         - DESTDIR=./staging ninja install
         - tree ./staging
   allow_failures:
index bf30eae..7e364eb 100644 (file)
@@ -11,7 +11,9 @@ project('lz4', ['c'],
   license: ['BSD', 'GPLv2'],
   default_options : ['c_std=c99',
     'buildtype=release'],
-  version: '1.8.3',
+  # Fall-back version in case of extracting version number from
+  # `lz4.h` failed.
+  version: '1.9.1',
   meson_version: '>=0.47.0')
 
 cc = meson.get_compiler('c')