-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
39 lines (37 loc) · 1.4 KB
/
circle.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
machine:
services:
- docker
node:
version: 7.7.1
dependencies:
pre:
# Required for integration tests of ilp-plugin-xrp-paychan
- >
mkdir test/integration &&
wget -P test/integration https://raw.githubusercontent.com/ripple/ilp-plugin-xrp-paychan/da-integration-tset/test/integration/Dockerfile &&
wget -P test/integration https://raw.githubusercontent.com/ripple/ilp-plugin-xrp-paychan/da-integration-tset/test/integration/rippled.cfg &&
docker build --rm=false -t rippled ./test/integration
test:
pre:
# Required for integration tests of ilp-plugin-xrp-paychan
- docker run -d -p 5006:5006 -p 6006:6006 -p 51235:51235 rippled && sleep 5
override:
# Run lint
- npm run lint
# Run tests with coverage
- npm test
# Run integration test suite
- if git log -1 --pretty=%B | grep -qF "[skip tests]"; then true; else DEBUG=ilp* npm run integration; fi
post:
# Upload code coverage data
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
deployment:
production:
branch: master
commands:
# Push NPM package if not yet published
- mv npmrc-env .npmrc
- if [ $(npm show ilp-plugin-payment-channel-framework version) != $(npm ls --depth=-1 2>/dev/null | head -1 | cut -f 1 -d " " | cut -f 2 -d @) ] ; then npm publish ; fi
general:
artifacts:
- "coverage/lcov-report"