forked from golemfactory/clay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (37 loc) · 1.23 KB
/
.travis.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
language: generic
os: osx
osx_image: xcode8.3 # OS X 10.12
branches:
only:
- master
- develop
env:
global:
- GETH_VER=geth-darwin-amd64-1.7.2-1db4ecdc
- HYPERG_VER=0.2.1
cache:
directories:
- $HOME/Library/Caches/Homebrew
- $HOME/Library/Caches/pip
before_install:
- brew update
- brew install python3 openexr freeimage
# geth
- wget https://gethstore.blob.core.windows.net/builds/${GETH_VER}.tar.gz
- tar xvf ${GETH_VER}.tar.gz
- sudo -HE mv ${GETH_VER}/geth /usr/local/bin
# golem-hyperdrive
- wget https://github.com/mfranciszkiewicz/golem-hyperdrive/releases/download/v${HYPERG_VER}/hyperg_${HYPERG_VER}_darwin-x64.tar.gz
- tar xvf hyperg_${HYPERG_VER}_darwin-x64.tar.gz
- ./hyperg/hyperg &
# requirements
- sudo -HE pip3 install -r requirements.txt
- sudo -HE pip3 install -r requirements-test.txt
- sudo -HE python3 setup.py develop
# Slow tests only on branches and PRs with enough approvals
- export ARG_RUNSLOW=$(python3 scripts/get-slow-argument.py ${TRAVIS_PULL_REQUEST})
script:
- python3 -m pytest --cov=golem --durations=5 --maxfail=3 -rxs${ARG_RUNSLOW}
- if [ -z "${ARG_RUNSLOW}" ]; then echo "Not enough approvals."; exit 1; fi
after_success:
- python3 -m codecov