Skip to content

Commit

Permalink
CI: Extend t_ems job to allow using both emscripten and native binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Dec 10, 2021
1 parent eb8e304 commit f5830c4
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,11 @@ jobs:
parameters:
project:
type: string
binary_type:
type: enum
enum:
- solcjs
- native
compile_only:
type: integer
default: 0
Expand All @@ -1037,14 +1042,26 @@ jobs:
- attach_workspace:
at: /tmp/workspace
- run:
name: Install dependencies
name: Install lsof
command: |
# lsof is used by Colony in its stop-blockchain-client.sh script
sudo apt-get -qy install lsof
- run:
name: External <<parameters.project>> tests
command: |
test/externalTests/<<parameters.project>>.sh solcjs /tmp/workspace/soljson.js
sudo apt-get --quiet --assume-yes --no-install-recommends install lsof
- when:
condition:
equal: [<< parameters.binary_type >>, "solcjs"]
steps:
- run:
name: External <<parameters.project>> tests (solcjs)
command: |
test/externalTests/<<parameters.project>>.sh solcjs /tmp/workspace/soljson.js
- when:
condition:
equal: [<< parameters.binary_type >>, "native"]
steps:
- run:
name: External <<parameters.project>> tests (native)
command: |
test/externalTests/<<parameters.project>>.sh native /tmp/workspace/solc/solc
- gitter_notify_failure_unless_pr

b_win: &b_win
Expand Down Expand Up @@ -1282,12 +1299,14 @@ workflows:
<<: *workflow_emscripten
name: t_ems_compile_ext_colony
project: colony
binary_type: solcjs
compile_only: 1
nodejs_version: '14'
- t_ems_ext:
<<: *workflow_emscripten
name: t_ems_compile_ext_gnosis
project: gnosis
binary_type: solcjs
compile_only: 1
nodejs_version: '14'

Expand All @@ -1297,25 +1316,29 @@ workflows:
# <<: *workflow_emscripten
# name: t_ems_test_ext_gnosis
# project: gnosis
# binary_type: solcjs
# # NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1").
# nodejs_version: '12'
- t_ems_ext:
<<: *workflow_emscripten
name: t_ems_test_ext_gnosis_v2
project: gnosis-v2
binary_type: solcjs
# NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1").
nodejs_version: '12'
- t_ems_ext:
<<: *workflow_emscripten
name: t_ems_test_ext_zeppelin
project: zeppelin
binary_type: solcjs
# NOTE: Tests crash on nodejs 17: "Error: error:0308010C:digital envelope routines::unsupported"
nodejs_version: '16'
resource_class: large
- t_ems_ext:
<<: *workflow_emscripten
name: t_ems_test_ext_ens
project: ens
binary_type: solcjs
# NOTE: One of the dependencies (fsevents) fails to build its native extension on node.js 12+.
nodejs_version: '10'

Expand Down Expand Up @@ -1382,4 +1405,5 @@ workflows:
<<: *workflow_emscripten
name: t_ems_test_ext_colony
project: colony
binary_type: solcjs
resource_class: medium

0 comments on commit f5830c4

Please sign in to comment.