mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CI: Extend t_ems job to allow using both emscripten and native binaries
This commit is contained in:
parent
eb8e304b47
commit
f5830c4516
@ -1015,6 +1015,11 @@ jobs:
|
|||||||
parameters:
|
parameters:
|
||||||
project:
|
project:
|
||||||
type: string
|
type: string
|
||||||
|
binary_type:
|
||||||
|
type: enum
|
||||||
|
enum:
|
||||||
|
- solcjs
|
||||||
|
- native
|
||||||
compile_only:
|
compile_only:
|
||||||
type: integer
|
type: integer
|
||||||
default: 0
|
default: 0
|
||||||
@ -1037,14 +1042,26 @@ jobs:
|
|||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install lsof
|
||||||
command: |
|
command: |
|
||||||
# lsof is used by Colony in its stop-blockchain-client.sh script
|
# lsof is used by Colony in its stop-blockchain-client.sh script
|
||||||
sudo apt-get -qy install lsof
|
sudo apt-get --quiet --assume-yes --no-install-recommends install lsof
|
||||||
- run:
|
- when:
|
||||||
name: External <<parameters.project>> tests
|
condition:
|
||||||
command: |
|
equal: [<< parameters.binary_type >>, "solcjs"]
|
||||||
test/externalTests/<<parameters.project>>.sh solcjs /tmp/workspace/soljson.js
|
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
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_win: &b_win
|
b_win: &b_win
|
||||||
@ -1282,12 +1299,14 @@ workflows:
|
|||||||
<<: *workflow_emscripten
|
<<: *workflow_emscripten
|
||||||
name: t_ems_compile_ext_colony
|
name: t_ems_compile_ext_colony
|
||||||
project: colony
|
project: colony
|
||||||
|
binary_type: solcjs
|
||||||
compile_only: 1
|
compile_only: 1
|
||||||
nodejs_version: '14'
|
nodejs_version: '14'
|
||||||
- t_ems_ext:
|
- t_ems_ext:
|
||||||
<<: *workflow_emscripten
|
<<: *workflow_emscripten
|
||||||
name: t_ems_compile_ext_gnosis
|
name: t_ems_compile_ext_gnosis
|
||||||
project: gnosis
|
project: gnosis
|
||||||
|
binary_type: solcjs
|
||||||
compile_only: 1
|
compile_only: 1
|
||||||
nodejs_version: '14'
|
nodejs_version: '14'
|
||||||
|
|
||||||
@ -1297,18 +1316,21 @@ workflows:
|
|||||||
# <<: *workflow_emscripten
|
# <<: *workflow_emscripten
|
||||||
# name: t_ems_test_ext_gnosis
|
# name: t_ems_test_ext_gnosis
|
||||||
# project: gnosis
|
# project: gnosis
|
||||||
|
# binary_type: solcjs
|
||||||
# # 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_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
|
||||||
|
binary_type: solcjs
|
||||||
# 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_ext:
|
- t_ems_ext:
|
||||||
<<: *workflow_emscripten
|
<<: *workflow_emscripten
|
||||||
name: t_ems_test_ext_zeppelin
|
name: t_ems_test_ext_zeppelin
|
||||||
project: zeppelin
|
project: zeppelin
|
||||||
|
binary_type: solcjs
|
||||||
# NOTE: Tests crash on nodejs 17: "Error: error:0308010C:digital envelope routines::unsupported"
|
# NOTE: Tests crash on nodejs 17: "Error: error:0308010C:digital envelope routines::unsupported"
|
||||||
nodejs_version: '16'
|
nodejs_version: '16'
|
||||||
resource_class: large
|
resource_class: large
|
||||||
@ -1316,6 +1338,7 @@ workflows:
|
|||||||
<<: *workflow_emscripten
|
<<: *workflow_emscripten
|
||||||
name: t_ems_test_ext_ens
|
name: t_ems_test_ext_ens
|
||||||
project: ens
|
project: ens
|
||||||
|
binary_type: solcjs
|
||||||
# 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'
|
||||||
|
|
||||||
@ -1382,4 +1405,5 @@ workflows:
|
|||||||
<<: *workflow_emscripten
|
<<: *workflow_emscripten
|
||||||
name: t_ems_test_ext_colony
|
name: t_ems_test_ext_colony
|
||||||
project: colony
|
project: colony
|
||||||
|
binary_type: solcjs
|
||||||
resource_class: medium
|
resource_class: medium
|
||||||
|
Loading…
Reference in New Issue
Block a user