2017-04-17 04:25:57 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
dist: trusty
|
|
|
|
sudo: false
|
|
|
|
|
2017-05-26 13:41:15 +00:00
|
|
|
# OS X only supports one image. Use the latest.
|
2017-05-26 10:30:46 +00:00
|
|
|
osx_image: xcode8.2
|
2017-04-17 04:25:57 +00:00
|
|
|
|
|
|
|
git:
|
|
|
|
depth: 3
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- BUILD_JOBS=2
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
- BUILD_MODE="shared"
|
|
|
|
- BUILD_MODE="static"
|
|
|
|
- BUILD_MODE="no-asm"
|
|
|
|
- BUILD_MODE="asan"
|
|
|
|
- BUILD_MODE="ubsan"
|
|
|
|
- BUILD_MODE="valgrind"
|
|
|
|
|
|
|
|
exclude:
|
|
|
|
# Skip GCC on OS X entirely
|
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
|
|
|
|
|
|
|
# The sanitizer builds under Clang run the tests very
|
|
|
|
# slowly and cause CI timeouts.
|
|
|
|
- compiler: clang
|
|
|
|
env: BUILD_MODE="asan"
|
|
|
|
- compiler: clang
|
|
|
|
env: BUILD_MODE="ubsan"
|
|
|
|
- compiler: clang
|
|
|
|
env: BUILD_MODE="valgrind"
|
|
|
|
|
2017-05-26 13:41:15 +00:00
|
|
|
script:
|
|
|
|
- make clean &>/dev/null && make
|
|
|
|
- ./cryptest.exe v && ./cryptest.exe tv all
|
|
|
|
|
2017-04-17 04:25:57 +00:00
|
|
|
# whitelist branches to avoid testing feature branches twice
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2017-05-26 13:41:15 +00:00
|
|
|
addons:
|
|
|
|
sonarqube: true
|
|
|
|
|
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "cryptopp"
|
|
|
|
build_command: "make -j 2"
|
|
|
|
|
2017-04-17 04:25:57 +00:00
|
|
|
#notifications:
|
|
|
|
# email: jdoe@example.com
|