forked from golemfactory/clay
-
Notifications
You must be signed in to change notification settings - Fork 6
/
circle.yml
31 lines (28 loc) · 1.55 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
machine:
services:
- docker
checkout:
post:
- git submodule update --init
dependencies:
pre:
- sudo apt-get install -y python-qt4 pyqt4-dev-tools
- if [ ! -e /home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/PyQt4 ]; then ln -s /usr/lib/python2.7/dist-packages/PyQt4/ /home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/; ln -s /usr/lib/python2.7/dist-packages/sip.so /home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/; ln -s /usr/lib/python2.7/dist-packages/sip.x86_64-linux-gnu.so /home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/; fi
- if [ ! -e /usr/local/bin/ipfs ]; then wget http://52.40.149.24:9999/go-ipfs_v0.4.1_linux-amd64.tar.gz; tar xvfz go-ipfs_v0.4.1_linux-amd64.tar.gz; sudo mv go-ipfs/ipfs /usr/local/bin/ipfs; /usr/local/bin/ipfs init; fi
- /usr/local/bin/ipfs config --json Bootstrap "[]"
- /usr/local/bin/ipfs config --json SupernodeRouting.Servers "[]"
- /usr/local/bin/ipfs config --json Addresses.Swarm '["/ip6/::/tcp/4001", "/ip6/::/udp/4002/utp", "/ip4/0.0.0.0/udp/4002/utp"]'
- /usr/local/bin/ipfs daemon:
background: true
- sudo add-apt-repository -y ppa:ethereum/ethereum && sudo apt-get update && sudo apt-get install geth
- geth --nodiscover --maxpeers 0 --exec "miner.makeDAG(0)" console
cache_directories:
- ~/.ethash
test:
pre:
- pip install coverage codecov
override:
- coverage run --branch --source=. setup.py test -a "--junitxml=$CIRCLE_TEST_REPORTS/test_result.xml":
timeout: 1200
post:
- codecov