mirror of https://github.com/status-im/evmc.git
Merge pull request #93 from ethereum/tests-cppstd
Compile unittests and vmtests as C++11
This commit is contained in:
commit
3076fc8429
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue