-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.yml
85 lines (73 loc) · 2.11 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:8
- image: ethereum/client-go
command: |
--identity="TEST_NODE"
--networkid="53611"
--rpc
--rpcaddr 0.0.0.0
--rpcapi admin,debug,eth,miner,net,personal,shh,txpool,web3
--ws
--wsaddr 0.0.0.0
--wsapi admin,debug,eth,miner,net,personal,shh,txpool,web3
--wsorigins "*"
--mine
--minerthreads=1
--dev
--allow-insecure-unlock
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
working_directory: ~/repo
steps:
- checkout
# The `ledger-wallet-provider` lib has `node-hid` as a dependency, which won't build on certain
# Linux systems without installing libusb first
- type: shell
name: Install System Dependencies
command: sudo apt-get update && sudo apt install -y libusb-1.0-0 libusb-1.0-0-dev
- restore_cache:
keys:
- v3-dependencies-{{ checksum "package-lock.json" }}
- run: npm install
- save_cache:
paths:
- node_modules
key: v3-dependencies-{{ checksum "package-lock.json" }}
# run tests!
- run: npm run prebuild && npm test
- run: npm run build
- run: npm run cleanup-dev
- save_cache:
paths:
- '.'
key: dist-{{ .Revision }}
deploy:
docker:
- image: circleci/node:8
working_directory: ~/repo
steps:
- restore_cache:
keys:
- dist-{{ .Revision }}
- run: npx semantic-release
workflows:
version: 2
build-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master