libfort/.travis.yml

47 lines
1.2 KiB
YAML
Raw Normal View History

2018-03-09 08:45:23 +01:00
language: C
2018-03-17 19:33:48 +01:00
#sudo: required # to prevent fail of executables build with clang and sanitizers
2018-03-09 08:45:23 +01:00
matrix:
include:
- os: linux
2018-03-17 19:33:48 +01:00
sudo: false
2018-03-09 08:45:23 +01:00
compiler: gcc
env: GCC_BUILD=ON
before_script:
- pip install --user cpp-coveralls
after_success:
- coveralls --build-root build --include src --include tests --gcov-options '\-lp'
2018-03-09 09:03:03 +01:00
- os: linux
2018-03-17 19:33:48 +01:00
sudo: required # to prevent fail of executables build with clang and sanitizers
2018-03-09 09:03:03 +01:00
compiler: clang
env: GCC_BUILD=OFF
2018-03-17 19:33:48 +01:00
2018-03-09 08:45:23 +01:00
script:
# Print all environment variables to aid in CI development
- printenv
# Print version and available CMake generators to aid in CI development
- cmake --version
# Build cmocka
2018-03-09 08:53:59 +01:00
- mkdir -p tests/cmocka-1.1.0/build
- cd tests/cmocka-1.1.0/build
- cmake ..
- make
- cd ../../..
2018-03-09 08:45:23 +01:00
2018-03-09 09:03:03 +01:00
# Perform out-of-source build(CMake backend generation, build, and test)
# Test build without optimizations
- mkdir -p build
- cd build
- cmake .. -DFORT_TEST_BUILD=ON -DFORT_GCC_BUILD=${GCC_BUILD}
- cmake --build . --target all
- ls
2018-03-17 19:21:53 +01:00
- LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_dummy
2018-03-09 13:21:18 +01:00
- LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_example
2018-03-09 11:05:48 +01:00
- LSAN_OPTIONS=verbosity=1:log_threads=1 ./libfort_test
2018-03-09 09:03:03 +01:00