forked from renproject/command-center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
62 lines (56 loc) · 1.72 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
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
executors:
default:
docker:
- image: circleci/node:10.16
working_directory: ~/command-center
commands:
install_deps:
description: "Install dependencies"
steps:
# Download and cache dependencies
- restore_cache:
name: Restore node_modules
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: sudo npm install --global yarn && yarn version && yarn cache clean && (yarn install --network-concurrency 1 || yarn install --network-concurrency 1)
- run:
name: Install darknode-sol dependencies
command: cd ./node_modules/darknode-sol && (yarn install --network-concurrency 1 || yarn install --network-concurrency 1)
- save_cache:
name: Save node_modules
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
test_on_local_network:
description: "Test on local network"
steps:
- run:
name: Migrate contracts
command: cd ./node_modules/darknode-sol && (yarn ganache-cli -d > /dev/null &) && sleep 5 && yarn truffle migrate && cd ../../ && yarn run test
jobs:
build:
executor: default
steps:
- checkout
- install_deps
- test_on_local_network
# - run:
# name: Build
# command: yarn run build
- run:
name: Lint
command: yarn run lint
- run:
name: Lint with warnings
command: yarn run lint:extra || true # FIXME
workflows:
build:
jobs:
- build