-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from gnosis/development
Development
- Loading branch information
Showing
44 changed files
with
5,647 additions
and
3,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,12 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
parserOptions: { | ||
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module', // Allows for the use of imports | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'@typescript-eslint', | ||
], | ||
root: true, | ||
rules: { | ||
'quotes': ['error', 'single'], | ||
'indent': ['error', 2], | ||
'max-len': ['error', { | ||
'code': 100, | ||
'tabWidth': 2, | ||
'ignoreComments': false, | ||
'ignoreRegExpLiterals': true, | ||
'ignoreStrings': true, | ||
'ignoreTemplateLiterals': true, | ||
'ignoreUrls': true | ||
}], | ||
'semi': ['error', 'always'], | ||
'no-unused-vars': ['error', { | ||
'varsIgnorePattern': 'should|expect' | ||
}] | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"printWidth": 100, | ||
"trailingComma": "none", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,66 @@ | ||
dist: xenial | ||
os: linux | ||
language: node_js | ||
|
||
node_js: | ||
- lts/dubnium | ||
|
||
node_js: lts/dubnium | ||
cache: yarn | ||
services: | ||
- docker | ||
|
||
before_install: | ||
- git clone https://github.com/gnosis/safe-relay-service.git | ||
- cd safe-relay-service | ||
- git checkout cpk-test | ||
- docker-compose -f docker-compose.yml -f docker-compose.dev.yml build | ||
|
||
install: | ||
- yarn global add [email protected] | ||
- yarn install | ||
|
||
jobs: | ||
include: | ||
- name: Ganache | ||
before_script: | ||
- CONTAINER_ID=$(docker run -d -p 8545:8545 trufflesuite/ganache-cli) | ||
- yarn wait-port -t 10000 localhost:8545 | ||
- CONTAINER_ID=$(docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d) | ||
- ganache-cli -d --defaultBalanceEther 10000 -h 0.0.0.0 --noVMErrorsOnRPCResponse > /dev/null & | ||
- sleep 60 | ||
script: | ||
- yarn test | ||
after_script: | ||
- docker logs $CONTAINER_ID | ||
- docker stop $CONTAINER_ID | ||
- docker rm $CONTAINER_ID | ||
|
||
- name: Ganache with --noVMErrorsOnRPCResponse | ||
before_script: | ||
- CONTAINER_ID=$(docker run -d -p 8545:8545 trufflesuite/ganache-cli --noVMErrorsOnRPCResponse) | ||
- yarn wait-port -t 10000 localhost:8545 | ||
script: | ||
- yarn test | ||
after_script: | ||
- docker logs $CONTAINER_ID | ||
- docker stop $CONTAINER_ID | ||
- docker rm $CONTAINER_ID | ||
#- name: Ganache with --noVMErrorsOnRPCResponse | ||
# before_script: | ||
# - CONTAINER_ID=$(docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d) | ||
# - sleep 60 | ||
# script: | ||
# - yarn test-rpc | ||
# after_script: | ||
# - docker logs $CONTAINER_ID | ||
# - docker stop $CONTAINER_ID | ||
# - docker rm $CONTAINER_ID | ||
|
||
- name: Geth | ||
before_script: | ||
- yarn geth-dev-assistant --accounts 2 --gasLimit 6721975 | ||
script: | ||
- yarn test | ||
after_script: | ||
- docker stop geth-client | ||
#- name: Geth | ||
# before_script: | ||
# - yarn geth-dev-assistant --accounts 2 --gasLimit 6721975 | ||
# script: | ||
# - yarn test | ||
# after_script: | ||
# - docker stop geth-client | ||
|
||
- name: OpenEthereum | ||
before_script: | ||
- PASSFILE=$(mktemp) | ||
- echo '' > $PASSFILE | ||
- chmod 644 $PASSFILE | ||
- CONTAINER_ID=$(docker run -d -p 8545:8545 -p 8546:8546 -v $PASSFILE:$PASSFILE openethereum/openethereum --config dev --jsonrpc-interface=all --ws-interface=all --unlock 0x00a329c0648769a73afac7f9381e08fb43dbea72 --password $PASSFILE) | ||
- yarn wait-port -t 10000 localhost:8545 | ||
script: | ||
- yarn test | ||
after_script: | ||
- docker logs $CONTAINER_ID | ||
- docker stop $CONTAINER_ID | ||
- docker rm $CONTAINER_ID | ||
#- name: OpenEthereum | ||
# before_script: | ||
# - PASSFILE=$(mktemp) | ||
# - echo '' > $PASSFILE | ||
# - chmod 644 $PASSFILE | ||
# - CONTAINER_ID=$(docker run -d -p 8545:8545 -p 8546:8546 -v $PASSFILE:$PASSFILE openethereum/openethereum --config dev --jsonrpc-interface=all --ws-interface=all --unlock 0x00a329c0648769a73afac7f9381e08fb43dbea72 --password $PASSFILE) | ||
# - yarn wait-port -t 10000 localhost:8545 | ||
# script: | ||
# - yarn test | ||
# after_script: | ||
# - docker logs $CONTAINER_ID | ||
# - docker stop $CONTAINER_ID | ||
# - docker rm $CONTAINER_ID | ||
|
||
after_success: yarn coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.