compiler: clang
install:
- sudo apt-get install -qq python3 tree
- - curl -o ~/ninja.zip -L 'https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip'
+ - travis_retry 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'
+ - travis_retry curl -o ~/get-pip.py 'https://bootstrap.pypa.io/get-pip.py'
&& python3 ~/get-pip.py --user
&& pip3 install --user meson
script:
license: ['BSD', 'GPLv2'],
default_options : ['c_std=c99',
'buildtype=release'],
- # Fall-back version in case of extracting version number from
- # `lz4.h` failed.
- version: '1.9.1',
+ version: 'DUMMY',
meson_version: '>=0.47.0')
cc = meson.get_compiler('c')
GetLz4LibraryVersion_py = files('GetLz4LibraryVersion.py')
r = run_command(python3, GetLz4LibraryVersion_py, lz4_h_file)
if r.returncode() == 0
- output = r.stdout().strip()
- if output.version_compare('>@0@'.format(lz4_version))
- lz4_version = output
- message('Project version is now: @0@'.format(lz4_version))
- endif
+ lz4_version = r.stdout().strip()
+ message('Project version is now: @0@'.format(lz4_version))
else
- warning('Cannot find project version in @0@'.format(lz4_h_file))
+ error('Cannot find project version in @0@'.format(lz4_h_file))
endif
lz4_libversion = lz4_version