Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit e21b8fb

Browse files
committed
Circle CI: Upload coverage data only from GCC build
1 parent 3fc2bff commit e21b8fb

File tree

1 file changed

+47
-30
lines changed

1 file changed

+47
-30
lines changed

circle.yml

Lines changed: 47 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defaults:
2121
# (ninja is using relative paths otherwise).
2222
working_directory: ~/build
2323
command: |
24-
cmake ../project -G "$GENERATOR" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCOVERAGE=ON $CMAKE_OPTIONS
24+
cmake ../project -G "$GENERATOR" -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_OPTIONS
2525
2626
build: &build
2727
run:
@@ -47,6 +47,14 @@ defaults:
4747
4848
ctest --output-on-failure -j $TEST_PARALLEL_JOBS
4949
50+
test-evmc-interpreter: &test-evmc-interpreter
51+
run:
52+
name: "Test EVMC Interpreter"
53+
working_directory: ~/build
54+
command: |
55+
ETHEREUM_TEST_PATH=~/project/test/jsontests \
56+
test/testeth -t GeneralStateTests -- --vm interpreter
57+
5058
store-package: &store-package
5159
store_artifacts:
5260
path: ~/build/cpp-ethereum.tar.gz
@@ -121,36 +129,12 @@ defaults:
121129
ccache --show-stats
122130
123131
124-
linux-steps: &linux-steps
125-
- checkout
126-
- *update-submodules
127-
- *environment-info
128-
- *restore-deps-cache
129-
- *restore-ccache
130-
- *setup-ccache
131-
- *configure
132-
- *build
133-
- *stat-ccache
134-
- *save-ccache
135-
- *save-deps-cache
136-
- *store-package
137-
- *restore-ethash-dag
138-
- *test
139-
- run:
140-
name: "Test EVM-C Interpreter"
141-
working_directory: ~/build
142-
command: |
143-
ETHEREUM_TEST_PATH=~/project/test/jsontests \
144-
test/testeth -t GeneralStateTests -- --vm interpreter
145-
- *save-ethash-dag
146-
- *upload-coverage-data
147-
148-
149132
version: 2
150133
jobs:
151134

152135
linux-clang6:
153136
environment:
137+
- BUILD_TYPE: Release
154138
- CXX: clang++-6.0
155139
- CC: clang-6.0
156140
- GCOV: llvm-cov-6.0 gcov
@@ -159,7 +143,23 @@ jobs:
159143
- TEST_PARALLEL_JOBS: 8
160144
docker:
161145
- image: ethereum/cpp-build-env:1
162-
steps: *linux-steps
146+
steps:
147+
- checkout
148+
- *update-submodules
149+
- *environment-info
150+
- *restore-deps-cache
151+
- *restore-ccache
152+
- *setup-ccache
153+
- *configure
154+
- *build
155+
- *stat-ccache
156+
- *save-ccache
157+
- *save-deps-cache
158+
- *store-package
159+
- *restore-ethash-dag
160+
- *test
161+
- *test-evmc-interpreter
162+
- *save-ethash-dag
163163

164164
linux-gcc6:
165165
environment:
@@ -170,12 +170,30 @@ jobs:
170170
- GENERATOR: Ninja
171171
- BUILD_PARALLEL_JOBS: 3
172172
- TEST_PARALLEL_JOBS: 4
173+
- CMAKE_OPTIONS: -DCOVERAGE=ON
173174
# TODO: Fix memory leaks reported in leveldb.
174175
# - CMAKE_OPTIONS: -DSANITIZE=address
175176
# - ASAN_OPTIONS: detect_leaks=0
176177
docker:
177178
- image: ethereum/cpp-build-env:1
178-
steps: *linux-steps
179+
steps:
180+
- checkout
181+
- *update-submodules
182+
- *environment-info
183+
- *restore-deps-cache
184+
- *restore-ccache
185+
- *setup-ccache
186+
- *configure
187+
- *build
188+
- *stat-ccache
189+
- *save-ccache
190+
- *save-deps-cache
191+
- *store-package
192+
- *restore-ethash-dag
193+
- *test
194+
- *test-evmc-interpreter
195+
- *save-ethash-dag
196+
- *upload-coverage-data
179197

180198
macos-xcode90:
181199
environment:
@@ -195,7 +213,7 @@ jobs:
195213
# Python3 and requests are needed for Hunter upload.
196214
command: |
197215
HOMEBREW_NO_AUTO_UPDATE=1 brew install -q cmake ninja python3 leveldb
198-
pip3 install -q requests codecov
216+
pip3 install -q requests
199217
- *restore-deps-cache
200218
- *configure
201219
- *build
@@ -205,7 +223,6 @@ jobs:
205223
- *test
206224
- *store-randomcode-seed
207225
- *save-ethash-dag
208-
- *upload-coverage-data
209226

210227
# TODO: Run GCC6 build only in develop branch.
211228
# TODO: Enabled nightly builds and add more configs.

0 commit comments

Comments
 (0)