forked from openkylin/editorconfig-core
37 lines
738 B
YAML
37 lines
738 B
YAML
language: c
|
|
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
|
|
dist: xenial
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libpcre2-dev
|
|
|
|
# Settings to try
|
|
env:
|
|
- OPTIONS="-DCMAKE_BUILD_TYPE=Release -DBUILD_STATICALLY_LINKED_EXE=ON"
|
|
- OPTIONS="-DCMAKE_BUILD_TYPE=Release -DBUILD_STATICALLY_LINKED_EXE=OFF"
|
|
- OPTIONS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_STATICALLY_LINKED_EXE=ON"
|
|
- OPTIONS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_STATICALLY_LINKED_EXE=OFF"
|
|
|
|
# Run the Build script
|
|
script:
|
|
- mkdir _build
|
|
- cd _build
|
|
- cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
|
|
- VERBOSE=1 cmake --build . --target install
|
|
|
|
# Run Tests
|
|
after_script:
|
|
- ctest -VV --output-on-failure .
|
|
|
|
# Notify the mailing list
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: always
|