forked from CNTRPRTY/counterparty-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
106 lines (83 loc) · 2.89 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
orbs:
python: circleci/python@2.0.3
jobs:
build:
docker:
- image: cimg/python:3.6.15
steps:
- checkout
- python/install-packages:
pkg-manager: pip
- run:
name: Run counterparty-lib setup and install
command: python setup.py develop
- run:
name: Run apsw setup and install
command: python setup.py install_apsw
- persist_to_workspace:
root: ~/
paths:
- .
test:
docker:
- image: cimg/python:3.6.15
steps:
- attach_workspace:
at: ~/
- run:
name: "Run tests"
command: |
mkdir test-results
py.test --junitxml=test-results/junit.xml --verbose --skiptestbook=all --cov-config=.coveragerc --cov-report=term-missing --cov=./ counterpartylib
- store_test_results:
path: test-results
# test-reparse-testnet:
# docker:
# - image: cimg/python:3.6.15
# steps:
# - attach_workspace:
# at: ~/
# - run:
# name: "Get latest testnet db file"
# command: |
# mkdir -p ~/.local/share/counterparty
# wget https://counterparty.io/bootstrap/counterparty-db-testnet-7.latest.tar.gz -O ~/.local/share/counterparty/counterparty-db-testnet.latest.tar.gz
# tar -C ~/.local/share/counterparty -xvzf ~/.local/share/counterparty/counterparty-db-testnet.latest.tar.gz
# - run:
# name: "Run testnet reparse test"
# command: |
# mkdir test-results
# py.test --junitxml=test-results/junit.xml --verbose --capture=no --skiptestbook=mainnet -k test_book counterpartylib/test/reparse_test.py
# - store_test_results:
# path: test-results
# test-reparse-mainnet:
# docker:
# - image: cimg/python:3.6.15
# steps:
# - attach_workspace:
# at: ~/
# - run:
# name: "Get latest mainnet db file"
# command: |
# mkdir -p ~/.local/share/counterparty
# wget https://counterparty.io/bootstrap/counterparty-db.latest.tar.gz -O ~/.local/share/counterparty/counterparty-db.latest.tar.gz
# tar -C ~/.local/share/counterparty -xvzf ~/.local/share/counterparty/counterparty-db.latest.tar.gz
# - run:
# name: "Run testnet reparse test"
# command: |
# mkdir test-results
# py.test --junitxml=test-results/junit.xml --verbose --capture=no --skiptestbook=testnet -k test_book counterpartylib/test/reparse_test.py
# - store_test_results:
# path: test-results
workflows:
build-and-test:
jobs:
- build
- test:
requires:
- build
# - test-reparse-testnet:
# requires:
# - build