mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 18:28:20 +00:00
28 lines
753 B
YAML
28 lines
753 B
YAML
language: cpp
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
before_install:
|
|
- if [ $TRAVIS_OS_NAME == osx ]; then curl http://www.cmake.org/files/v3.0/cmake-3.0.2-Darwin64-universal.tar.gz -o cmake.tar.gz; fi
|
|
- if [ $TRAVIS_OS_NAME == osx ]; then tar xzf cmake.tar.gz; fi
|
|
- if [ $TRAVIS_OS_NAME == osx ]; then export PATH=$PATH:"cmake-3.0.2-Darwin64-universal/CMake.app/Contents/bin"; fi
|
|
- git submodule update --init
|
|
|
|
env:
|
|
- BUILD_TYPE=Debug
|
|
- BUILD_TYPE=Release
|
|
|
|
script:
|
|
- mkdir build && cd build
|
|
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DFMT_EXTRA_TESTS=ON ..
|
|
- make -j4
|
|
- CTEST_OUTPUT_ON_FAILURE=1 make test
|
|
- cd .. && rm -rf build/
|
|
# Building with biicode
|
|
- biicode/support/travis-build.sh
|
|
|
|
after_failure:
|
|
- cat Testing/Temporary/LastTest.log
|