Merge pull request #93 from ethereum/tests-cppstd

Compile unittests and vmtests as C++11
This commit is contained in:
Paweł Bylica 2018-08-28 11:20:51 +02:00 committed by GitHub
commit 3076fc8429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
version: 2 version: 2
jobs: jobs:
build: build: &build
docker: docker:
- image: ethereum/cpp-build-env - image: ethereum/cpp-build-env
steps: steps:
@ -46,6 +46,12 @@ jobs:
name: "Run evmc-vmtester libevmc-examplevm.so" name: "Run evmc-vmtester libevmc-examplevm.so"
command: ~/install/bin/evmc-vmtester ~/install/lib/libevmc-examplevm.so command: ~/install/bin/evmc-vmtester ~/install/lib/libevmc-examplevm.so
build-clang-3.8:
<<: *build
environment:
CC: clang-3.8
CXX: clang++-3.8
test-docs: test-docs:
docker: docker:
- image: ethereum/cpp-build-env - image: ethereum/cpp-build-env
@ -105,6 +111,7 @@ workflows:
evmc: evmc:
jobs: jobs:
- build - build
- build-clang-3.8
- bindings-go-1.10 - bindings-go-1.10
- bindings-go-1.9 - bindings-go-1.9
- test-docs - test-docs

View File

@ -5,6 +5,11 @@
hunter_add_package(GTest) hunter_add_package(GTest)
find_package(GTest CONFIG REQUIRED) find_package(GTest CONFIG REQUIRED)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
add_subdirectory(integration) add_subdirectory(integration)
add_subdirectory(unittests) add_subdirectory(unittests)
add_subdirectory(vmtester) add_subdirectory(vmtester)