forked from golemfactory/clay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
48 lines (41 loc) · 1.35 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
machine:
node:
version: 6.9.5
python:
version: 3.6.3
services:
- docker
post:
- pyenv global 3.6.3
checkout:
post:
- git submodule update --init
dependencies:
override:
- pip3 install -r requirements.txt
- pip3 install -r requirements-test.txt
- python3 setup.py develop
# Slow tests only on branches and PRs with enough approvals
- echo 'export ARG_RUNSLOW="'$(python scripts/get-slow-argument.py "${CIRCLE_PR_NUMBER}")'"' >> ~/.circlerc
pre:
# geth
- 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 geth
# taskcollector
- sudo apt-get install -y gcc-5 g++-5 libfreeimage3 libfreeimage-dev
- make -C apps/rendering/resources/taskcollector
# golem-hyperdrive
- wget https://github.com/mfranciszkiewicz/golem-hyperdrive/releases/download/v0.2.4/hyperg_0.2.4_linux-x64.tar.gz
- tar xvf hyperg_0.2.4_linux-x64.tar.gz
- ln -s $(pwd)/hyperg/hyperg $HOME/bin/hyperg
- hyperg:
background: true
test:
pre:
override:
- pytest --cov=golem --durations=5 --maxfail=3 -rxs --junitxml=${CIRCLE_TEST_REPORTS}/test_result.xml${ARG_RUNSLOW}:
timeout: 1200
- if [[ -z "${ARG_RUNSLOW}" ]]; then echo "Not enough approvals."; exit 1; fi
post:
- codecov