diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..611b985 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,61 @@ +language: c + +os: + - linux + - osx + +sudo: required +dist: trusty + +compiler: + - clang + - gcc + +matrix: + fast_finish: true + exclude: + # Skip GCC builds on macOS. + - os: osx + compiler: gcc + include: + # Additional GCC builds for code coverage. + - os: linux + compiler: gcc + env: CODE_COVERAGE=ON + +cache: + apt: true + +addons: + apt: + packages: + - clang-3.6 + - lcov + +branches: + only: + - master + +before_install: + - pip install --user cpp-coveralls + +script: + - sh ./build-deps.sh + - sh ./autogen.sh + - if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then + ./configure CFLAGS="-ftest-coverage -fprofile-arcs"; + else + ./configure; + fi + - make + - make check + +after_success: + - if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then + coveralls + --build-root . + --exclude lib + --exclude test + --gcov-options '\-lp' + --verbose; + fi diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..f4c54ef --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,7 @@ +image: Visual Studio 2017 + +build_script: +- ps: >- + cd win + + .\build.bat diff --git a/win/.gitignore b/win/.gitignore index da6703c..22f3b39 100644 --- a/win/.gitignore +++ b/win/.gitignore @@ -1,4 +1,4 @@ -!cglm.sln -!cglm.vcxproj -!cglm.vcxproj.filters +!libds.sln +!libds.vcxproj +!libds.vcxproj.filters !packages.config