Skip to content

Commit

Permalink
Merge pull request ethereum#93 from ethereum/tests-cppstd
Browse files Browse the repository at this point in the history
Compile unittests and vmtests as C++11
  • Loading branch information
chfast authored Aug 28, 2018
2 parents e34ea20 + 8108f04 commit 3076fc8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
jobs:

build:
build: &build
docker:
- image: ethereum/cpp-build-env
steps:
Expand Down Expand Up @@ -46,6 +46,12 @@ jobs:
name: "Run evmc-vmtester 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:
docker:
- image: ethereum/cpp-build-env
Expand Down Expand Up @@ -105,6 +111,7 @@ workflows:
evmc:
jobs:
- build
- build-clang-3.8
- bindings-go-1.10
- bindings-go-1.9
- test-docs
Expand Down
5 changes: 5 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
hunter_add_package(GTest)
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(unittests)
add_subdirectory(vmtester)

0 comments on commit 3076fc8

Please sign in to comment.