aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..d470d85e
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,33 @@
+language: c
+sudo: false
+addons:
+ apt:
+ packages:
+ - cmake
+ - uncrustify
+ - colordiff
+matrix:
+ include:
+ - os: linux
+ compiler: gcc
+ - os: linux
+ compiler: clang
+# - os: osx
+# compiler: gcc
+ - os: osx
+ compiler: clang
+script:
+ # Print all environment variables to aid in CI development
+ - uname -a
+ - printenv
+ # Print version and available CMake generators to aid in CI development
+ - cmake --version
+ - cmake --help
+ # Perform out-of-source build
+ - mkdir build
+ - cd build
+ # Perform CMake backend generation, build, and test
+ - cmake ..
+ - cmake --build . -- -j4
+ - ctest --output-on-failure -C Debug -j4
+ - etc/uncrustify_check.sh