Skip to content

Commit

Permalink
Fix license check
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Russo <[email protected]>
  • Loading branch information
russanto committed Aug 5, 2019
1 parent 08ecbcb commit f670884
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 1 deletion.
31 changes: 31 additions & 0 deletions packages/caliper-ethereum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,37 @@
"rewire": "^4.0.0",
"sinon": "2.3.8"
},
"license-check-and-add-config": {
"folder": ".",
"license": "../../LICENSE.txt",
"exact_paths_method": "EXCLUDE",
"exact_paths": [
"node_modules",
".nyc_output",
"coverage"
],
"file_type_method": "EXCLUDE",
"file_types": [
".yml"
],
"insert_license": false,
"license_formats": {
"js": {
"prepend": "/*",
"append": "*/",
"eachLine": {
"prepend": "* "
}
},
"editorconfig": {
"prepend": "#",
"append": "#",
"eachLine": {
"prepend": "# "
}
}
}
},
"nyc": {
"exclude": [
"lib/**"
Expand Down
14 changes: 14 additions & 0 deletions packages/caliper-samples/benchmark/simple/config-ethereum.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

---
test:
name: simple
Expand Down
12 changes: 12 additions & 0 deletions packages/caliper-samples/network/ethereum/1node-clique/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ethereum/client-go:stable
COPY ./data/ /root/
VOLUME [ "/root/.ethereum/keystore/" ]
Expand Down
12 changes: 12 additions & 0 deletions packages/caliper-samples/network/ethereum/1node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ethereum/client-go:stable
COPY ./data/ /root/
VOLUME [ "/root/.ethereum/keystore/" ]
Expand Down
14 changes: 14 additions & 0 deletions packages/caliper-samples/network/ethereum/1node/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

version: "3"
services:
node:
Expand Down
7 changes: 6 additions & 1 deletion packages/caliper-samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"benchmark/smallbank/.Rhistory",
"network/burrow/simple/chain/keys/names",
"network/sawtooth/simplenetwork/Dockerfile",
"network/ethereum/1node/keys",
"network/ethereum/1node/Dockerfile",
"network/ethereum/1node-clique/keys",
"network/ethereum/1node-clique/Dockerfile",
"network/fabric-v1.0/config/.gitignore",
"network/fabric-v1.1/config/.gitignore",
"network/fabric-v1.2/config/.gitignore",
Expand Down Expand Up @@ -65,7 +69,8 @@
".list",
".sol",
".proto",
".cfg"
".cfg",
".dat"
],
"insert_license": false,
"license_formats": {
Expand Down

0 comments on commit f670884

Please sign in to comment.