mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extract common parts from external job definitions into commands
This commit is contained in:
parent
e23cf26d98
commit
da17150bec
@ -802,173 +802,61 @@ 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_gnosis:
|
t_ems_compile_ext:
|
||||||
|
parameters:
|
||||||
|
project:
|
||||||
|
type: string
|
||||||
|
nodejs_version:
|
||||||
|
type: integer
|
||||||
|
default: 14
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:14
|
- image: circleci/node:<<parameters.nodejs_version>>
|
||||||
environment:
|
environment:
|
||||||
TERM: xterm
|
TERM: xterm
|
||||||
|
COMPILE_ONLY: 1
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
- run:
|
- run:
|
||||||
name: External GnosisSafe compilation
|
name: External <<parameters.project>> compilation
|
||||||
command: |
|
command: |
|
||||||
export COMPILE_ONLY=1
|
test/externalTests/<<parameters.project>>.sh /tmp/workspace/soljson.js
|
||||||
test/externalTests/gnosis.sh /tmp/workspace/soljson.js
|
|
||||||
|
|
||||||
t_ems_test_ext_gnosis:
|
t_ems_test_ext:
|
||||||
|
parameters:
|
||||||
|
project:
|
||||||
|
type: string
|
||||||
|
nodejs_version:
|
||||||
|
type: integer
|
||||||
|
default: 14
|
||||||
|
gitter_notify:
|
||||||
|
type: boolean
|
||||||
|
default: no
|
||||||
docker:
|
docker:
|
||||||
# NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1").
|
- image: circleci/node:<<parameters.nodejs_version>>
|
||||||
- image: circleci/node:12
|
|
||||||
environment:
|
environment:
|
||||||
TERM: xterm
|
TERM: xterm
|
||||||
|
COMPILE_ONLY: 0
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
- run:
|
- run:
|
||||||
name: External GnosisSafe tests
|
name: Install dependencies
|
||||||
command: |
|
|
||||||
test/externalTests/gnosis.sh /tmp/workspace/soljson.js
|
|
||||||
|
|
||||||
t_ems_compile_ext_gnosis_v2:
|
|
||||||
docker:
|
|
||||||
- image: circleci/node:14
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- run:
|
|
||||||
name: External GnosisSafe v2 compilation
|
|
||||||
command: |
|
|
||||||
export COMPILE_ONLY=1
|
|
||||||
test/externalTests/gnosis-v2.sh /tmp/workspace/soljson.js
|
|
||||||
|
|
||||||
t_ems_test_ext_gnosis_v2:
|
|
||||||
docker:
|
|
||||||
# NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1").
|
|
||||||
- image: circleci/node:12
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- run:
|
|
||||||
name: External GnosisSafe v2 tests
|
|
||||||
command: |
|
|
||||||
test/externalTests/gnosis-v2.sh /tmp/workspace/soljson.js
|
|
||||||
|
|
||||||
t_ems_compile_ext_zeppelin:
|
|
||||||
docker:
|
|
||||||
- image: circleci/node:14
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- run:
|
|
||||||
name: External Zeppelin compilation
|
|
||||||
command: |
|
|
||||||
export COMPILE_ONLY=1
|
|
||||||
test/externalTests/zeppelin.sh /tmp/workspace/soljson.js
|
|
||||||
|
|
||||||
t_ems_test_ext_zeppelin:
|
|
||||||
docker:
|
|
||||||
- image: circleci/node:14
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- run:
|
|
||||||
name: External Zeppelin tests
|
|
||||||
command: |
|
|
||||||
test/externalTests/zeppelin.sh /tmp/workspace/soljson.js
|
|
||||||
|
|
||||||
t_ems_compile_ext_colony:
|
|
||||||
docker:
|
|
||||||
- image: circleci/node:14
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- run:
|
|
||||||
name: Install test dependencies
|
|
||||||
command: |
|
command: |
|
||||||
|
# lsof is used by Colony in its stop-blockchain-client.sh script
|
||||||
sudo apt-get -qy install lsof
|
sudo apt-get -qy install lsof
|
||||||
- run:
|
- run:
|
||||||
name: External ColonyNetworks compilation
|
name: External <<parameters.project>> tests
|
||||||
command: |
|
command: |
|
||||||
export COMPILE_ONLY=1
|
test/externalTests/<<parameters.project>>.sh /tmp/workspace/soljson.js
|
||||||
test/externalTests/colony.sh /tmp/workspace/soljson.js
|
- when:
|
||||||
|
condition: <<parameters.gitter_notify>>
|
||||||
t_ems_test_ext_colony:
|
|
||||||
docker:
|
|
||||||
- image: circleci/node:14
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- run:
|
|
||||||
name: Install test dependencies
|
|
||||||
command: |
|
|
||||||
sudo apt-get -qy install lsof
|
|
||||||
- run:
|
|
||||||
name: External ColonyNetworks tests
|
|
||||||
command: |
|
|
||||||
test/externalTests/colony.sh /tmp/workspace/soljson.js
|
|
||||||
- run: *gitter_notify_failure
|
- run: *gitter_notify_failure
|
||||||
- run: *gitter_notify_success
|
- run: *gitter_notify_success
|
||||||
|
|
||||||
t_ems_compile_ext_ens:
|
|
||||||
docker:
|
|
||||||
# NOTE: One of the dependencies (fsevents) fails to build its native extension on node.js 12+.
|
|
||||||
- image: circleci/node:10
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- run:
|
|
||||||
name: Install test dependencies
|
|
||||||
command: |
|
|
||||||
sudo apt-get -qy install lsof
|
|
||||||
- run:
|
|
||||||
name: External Ens compilation
|
|
||||||
command: |
|
|
||||||
export COMPILE_ONLY=1
|
|
||||||
test/externalTests/ens.sh /tmp/workspace/soljson.js
|
|
||||||
|
|
||||||
t_ems_test_ext_ens:
|
|
||||||
docker:
|
|
||||||
# NOTE: One of the dependencies (fsevents) fails to build its native extension on node.js 12+.
|
|
||||||
- image: circleci/node:10
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- attach_workspace:
|
|
||||||
at: /tmp/workspace
|
|
||||||
- run:
|
|
||||||
name: Install test dependencies
|
|
||||||
command: |
|
|
||||||
sudo apt-get -qy install lsof
|
|
||||||
- run:
|
|
||||||
name: External Ens compilation
|
|
||||||
command: |
|
|
||||||
test/externalTests/ens.sh /tmp/workspace/soljson.js
|
|
||||||
|
|
||||||
b_win: &b_win
|
b_win: &b_win
|
||||||
executor:
|
executor:
|
||||||
name: win/default
|
name: win/default
|
||||||
@ -1149,17 +1037,54 @@ workflows:
|
|||||||
# Emscripten build and tests that take 15 minutes or less
|
# Emscripten build and tests that take 15 minutes or less
|
||||||
- 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_colony: *workflow_emscripten
|
|
||||||
- t_ems_compile_ext_gnosis: *workflow_emscripten
|
- t_ems_compile_ext:
|
||||||
- t_ems_compile_ext_gnosis_v2: *workflow_emscripten
|
<<: *workflow_emscripten
|
||||||
- t_ems_compile_ext_zeppelin: *workflow_emscripten
|
name: t_ems_compile_ext_colony
|
||||||
- t_ems_compile_ext_ens: *workflow_emscripten
|
project: colony
|
||||||
|
- t_ems_compile_ext:
|
||||||
|
<<: *workflow_emscripten
|
||||||
|
name: t_ems_compile_ext_gnosis
|
||||||
|
project: gnosis
|
||||||
|
- t_ems_compile_ext:
|
||||||
|
<<: *workflow_emscripten
|
||||||
|
name: t_ems_compile_ext_gnosis_v2
|
||||||
|
project: gnosis-v2
|
||||||
|
- t_ems_compile_ext:
|
||||||
|
<<: *workflow_emscripten
|
||||||
|
name: t_ems_compile_ext_zeppelin
|
||||||
|
project: zeppelin
|
||||||
|
- t_ems_compile_ext:
|
||||||
|
<<: *workflow_emscripten
|
||||||
|
name: t_ems_compile_ext_ens
|
||||||
|
project: ens
|
||||||
|
# NOTE: One of the dependencies (fsevents) fails to build its native extension on node.js 12+.
|
||||||
|
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_gnosis: *workflow_emscripten
|
#- t_ems_test_ext:
|
||||||
- t_ems_test_ext_gnosis_v2: *workflow_emscripten
|
# <<: *workflow_emscripten
|
||||||
- t_ems_test_ext_zeppelin: *workflow_emscripten
|
# name: t_ems_test_ext_gnosis
|
||||||
- t_ems_test_ext_ens: *workflow_emscripten
|
# project: gnosis
|
||||||
|
# # NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1").
|
||||||
|
# nodejs_version: 12
|
||||||
|
- t_ems_test_ext:
|
||||||
|
<<: *workflow_emscripten
|
||||||
|
name: t_ems_test_ext_gnosis_v2
|
||||||
|
project: gnosis-v2
|
||||||
|
# NOTE: Tests do not start on node.js 14 ("ganache-cli exited early with code 1").
|
||||||
|
nodejs_version: 12
|
||||||
|
- t_ems_test_ext:
|
||||||
|
<<: *workflow_emscripten
|
||||||
|
name: t_ems_test_ext_zeppelin
|
||||||
|
project: zeppelin
|
||||||
|
- t_ems_test_ext:
|
||||||
|
<<: *workflow_emscripten
|
||||||
|
name: t_ems_test_ext_ens
|
||||||
|
project: ens
|
||||||
|
# NOTE: One of the dependencies (fsevents) fails to build its native extension on node.js 12+.
|
||||||
|
nodejs_version: 10
|
||||||
|
|
||||||
# Windows build and tests
|
# Windows build and tests
|
||||||
- b_win: *workflow_trigger_on_tags
|
- b_win: *workflow_trigger_on_tags
|
||||||
@ -1216,4 +1141,8 @@ 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_colony: *workflow_emscripten
|
- t_ems_test_ext:
|
||||||
|
<<: *workflow_emscripten
|
||||||
|
name: t_ems_test_ext_colony
|
||||||
|
project: colony
|
||||||
|
gitter_notify: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user