forked from golemfactory/clay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
52 lines (46 loc) · 2.02 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
machine:
node:
version: 6.9.5
python:
version: 3.5.2
services:
- docker
post:
- pyenv global 3.5.2
checkout:
post:
- git submodule update --init
dependencies:
override:
- pip3 install -r requirements.txt
- python3 setup.py develop
pre:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository -y ppa:ethereum/ethereum && sudo apt-get update
- sudo apt-get install -y qt5-default qtbase5-dev-tools geth unzip gcc-5 g++-5 libfreeimage3 libfreeimage-dev colordiff
- cd apps/rendering/resources/taskcollector && make && cd ../../../../..
- pip3 install six
- pip3 install -r requirements.txt
- pip3 install -r requirements-lint.txt
- if [ ! -e /usr/local/bin/ipfs ]; then wget https://dist.ipfs.io/go-ipfs/v0.4.5/go-ipfs_v0.4.5_linux-amd64.tar.gz; tar xvfz go-ipfs_v0.4.5_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
- wget https://github.com/mfranciszkiewicz/golem-hyperdrive/releases/download/v0.2.1/hyperg_0.2.1_linux-x64.tar.gz
- tar xvf hyperg_0.2.1_linux-x64.tar.gz
- ./hyperg/hyperg:
background: true
test:
pre:
- pip3 install coverage codecov
override:
- ./lintdiff.sh pylint --disable=R apps golem gui scripts setup_util '*.py' || echo "pylint failed"
- ./lintdiff.sh pylint --disable=R,protected-access tests || echo "pylint for tests failed"
- ./lintdiff.sh pycodestyle || echo "pycodestyle failed"
- ./lintdiff.sh mypy apps golem gui scripts setup_util tests '*.py' || echo "mypy failed"
- python3 -m coverage run --branch --source=. setup.py test -a "--junitxml=$CIRCLE_TEST_REPORTS/test_result.xml":
timeout: 1200
post:
- codecov