aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 17:18:59 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 17:18:59 +0100
commit22d05ce647281056d71fbd3c31df3bcd6396188d (patch)
tree90208930f54c47987bfd5ffcf0a0acaaad2510da /.travis.yml
parented5044da43172d86a1aa475473561a4818b7c69c (diff)
parentac6b9c18ef55f4cd36e85069cf0cf82c14e04404 (diff)
downloadlibnitrokey-22d05ce647281056d71fbd3c31df3bcd6396188d.tar.gz
libnitrokey-22d05ce647281056d71fbd3c31df3bcd6396188d.tar.bz2
Merge branch 'libnitrokey_3'
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml58
1 files changed, 58 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..ba4465b
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,58 @@
+language: generic
+sudo: false
+os: osx
+env: CF=
+
+matrix:
+ include:
+# - osx_image: xcode7.3 #default
+# before_install: &brew
+# - brew update
+# - brew install hidapi
+ - osx_image: xcode6.4
+ - osx_image: xcode8.2
+ - os: linux
+ dist: trusty
+ env: COMPILER_NAME=gcc CXX=g++-5 CC=gcc-5 CF=-DCOMPILE_TESTS=ON
+ addons:
+ apt:
+ packages:
+ - cmake
+ - libhidapi-dev
+ - g++-5
+ sources: &sources
+ - ubuntu-toolchain-r-test
+ - os: linux
+ dist: trusty
+ env: COMPILER_NAME=gcc CXX=g++-6 CC=gcc-6 CF=-DCOMPILE_TESTS=ON
+ addons:
+ apt:
+ packages:
+ - cmake
+ - libhidapi-dev
+ - g++-6
+ sources: *sources
+ - os: linux
+ dist: trusty
+ env: COMPILER_NAME=clang CXX=clang++-3.8 CC=clang-3.8 CF=-DCOMPILE_TESTS=ON
+ addons:
+ apt:
+ packages:
+ - cmake
+ - libhidapi-dev
+ - g++-5
+ - clang-3.8
+ sources: *sources
+
+
+install:
+ - mkdir -p build
+ - cd build
+# - export CXXFLAGS="${CXX_FLAGS} -Wall -Wextra -Werror" # TODO enable when fixed
+ - ${CXX} --version || true
+ - cmake --version
+ - cmake .. ${CF}
+
+script:
+ - make -j2
+# - make test # TODO add library device-less tests \ No newline at end of file