Combine the t_ems_compile_ext and t_ems_test_ext job definitions

This commit is contained in:
Kamil Śliwak 2020-12-09 13:07:21 +01:00
parent da17150bec
commit b672c2fab7

View File

@ -802,31 +802,13 @@ jobs:
npm --version npm --version
test/externalTests/solc-js/solc-js.sh /tmp/workspace/soljson.js $(cat /tmp/workspace/version.txt) test/externalTests/solc-js/solc-js.sh /tmp/workspace/soljson.js $(cat /tmp/workspace/version.txt)
t_ems_compile_ext: t_ems_ext:
parameters: parameters:
project: project:
type: string type: string
nodejs_version: compile_only:
type: integer type: integer
default: 14 default: 0
docker:
- image: circleci/node:<<parameters.nodejs_version>>
environment:
TERM: xterm
COMPILE_ONLY: 1
steps:
- checkout
- attach_workspace:
at: /tmp/workspace
- run:
name: External <<parameters.project>> compilation
command: |
test/externalTests/<<parameters.project>>.sh /tmp/workspace/soljson.js
t_ems_test_ext:
parameters:
project:
type: string
nodejs_version: nodejs_version:
type: integer type: integer
default: 14 default: 14
@ -837,7 +819,7 @@ jobs:
- image: circleci/node:<<parameters.nodejs_version>> - image: circleci/node:<<parameters.nodejs_version>>
environment: environment:
TERM: xterm TERM: xterm
COMPILE_ONLY: 0 COMPILE_ONLY: <<parameters.compile_only>>
steps: steps:
- checkout - checkout
- attach_workspace: - attach_workspace:
@ -1038,48 +1020,53 @@ workflows:
- b_ems: *workflow_trigger_on_tags - b_ems: *workflow_trigger_on_tags
- t_ems_solcjs: *workflow_emscripten - t_ems_solcjs: *workflow_emscripten
- t_ems_compile_ext: - t_ems_ext:
<<: *workflow_emscripten <<: *workflow_emscripten
name: t_ems_compile_ext_colony name: t_ems_compile_ext_colony
project: colony project: colony
- t_ems_compile_ext: compile_only: 1
- t_ems_ext:
<<: *workflow_emscripten <<: *workflow_emscripten
name: t_ems_compile_ext_gnosis name: t_ems_compile_ext_gnosis
project: gnosis project: gnosis
- t_ems_compile_ext: compile_only: 1
- t_ems_ext:
<<: *workflow_emscripten <<: *workflow_emscripten
name: t_ems_compile_ext_gnosis_v2 name: t_ems_compile_ext_gnosis_v2
project: gnosis-v2 project: gnosis-v2
- t_ems_compile_ext: compile_only: 1
- t_ems_ext:
<<: *workflow_emscripten <<: *workflow_emscripten
name: t_ems_compile_ext_zeppelin name: t_ems_compile_ext_zeppelin
project: zeppelin project: zeppelin
- t_ems_compile_ext: compile_only: 1
- t_ems_ext:
<<: *workflow_emscripten <<: *workflow_emscripten
name: t_ems_compile_ext_ens name: t_ems_compile_ext_ens
project: ens project: ens
compile_only: 1
# NOTE: One of the dependencies (fsevents) fails to build its native extension on node.js 12+. # NOTE: One of the dependencies (fsevents) fails to build its native extension on node.js 12+.
nodejs_version: 10 nodejs_version: 10
# FIXME: Gnosis tests are pretty flaky right now. They often fail on CircleCI due to random ProviderError # FIXME: Gnosis tests are pretty flaky right now. They often fail on CircleCI due to random ProviderError
# and there are also other less frequent problems. See https://github.com/gnosis/safe-contracts/issues/216. # and there are also other less frequent problems. See https://github.com/gnosis/safe-contracts/issues/216.
#- t_ems_test_ext: #- t_ems_ext:
# <<: *workflow_emscripten # <<: *workflow_emscripten
# name: t_ems_test_ext_gnosis # name: t_ems_test_ext_gnosis
# project: gnosis # project: gnosis
# # NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1"). # # NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1").
# nodejs_version: 12 # nodejs_version: 12
- t_ems_test_ext: - t_ems_ext:
<<: *workflow_emscripten <<: *workflow_emscripten
name: t_ems_test_ext_gnosis_v2 name: t_ems_test_ext_gnosis_v2
project: gnosis-v2 project: gnosis-v2
# NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1"). # NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1").
nodejs_version: 12 nodejs_version: 12
- t_ems_test_ext: - t_ems_ext:
<<: *workflow_emscripten <<: *workflow_emscripten
name: t_ems_test_ext_zeppelin name: t_ems_test_ext_zeppelin
project: zeppelin project: zeppelin
- t_ems_test_ext: - t_ems_ext:
<<: *workflow_emscripten <<: *workflow_emscripten
name: t_ems_test_ext_ens name: t_ems_test_ext_ens
project: ens project: ens
@ -1141,7 +1128,7 @@ workflows:
# Emscripten build and tests that take more than 15 minutes to execute # Emscripten build and tests that take more than 15 minutes to execute
- b_ems: *workflow_trigger_on_tags - b_ems: *workflow_trigger_on_tags
- t_ems_test_ext: - t_ems_ext:
<<: *workflow_emscripten <<: *workflow_emscripten
name: t_ems_test_ext_colony name: t_ems_test_ext_colony
project: colony project: colony