aboutsummaryrefslogtreecommitdiffstats
path: root/circle.yml
blob: 035b2e1551f269c4263cf4f5ed573ca922722a87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
machine:
  node:
    version: 6.5.0
  environment:
      CONTRACTS_COMMIT_HASH: '78fe8dd'
      PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"

dependencies:
  override:
    - yarn
  cache_directories:
    - ~/.cache/yarn

test:
  override:
    - wget https://s3.amazonaws.com/testrpc-shapshots/${CONTRACTS_COMMIT_HASH}.zip
    - unzip ${CONTRACTS_COMMIT_HASH}.zip -d testrpc_snapshot
    - npm run testrpc -- --db testrpc_snapshot:
        background: true
    - lerna run test:coverage
    - lerna run report_test_coverage
    - if [ $CIRCLE_BRANCH = "master" ]; then lerna run test:umd; fi
    - lerna run lint