-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
37 lines (37 loc) · 1.08 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
branches:
only:
- master
dist: focal
language: python
python:
- "3.7.9"
- "3.8.5"
- "3.9.1"
env:
global:
- PROTOC_VERSION=3.12.0
jobs:
- GO_IPFS_VERSION=0.7.0
- GO_IPFS_VERSION=0.8.0
- GO_IPFS_VERSION=0.9.1
- GO_IPFS_VERSION=0.10.0
before_install:
- sudo apt-get install -qq pkg-config fuse3 libfuse3-dev
- sudo modprobe fuse
- sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf
install:
- pip install tox codecov
- curl --location https://github.com/ipfs/go-ipfs/releases/download/v${GO_IPFS_VERSION}/go-ipfs_v${GO_IPFS_VERSION}_linux-amd64.tar.gz | tar xvz
- export PATH=$PATH:$(pwd)/go-ipfs
- curl -L https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip > protoc.zip
- sudo unzip -d /usr/local protoc.zip
- sudo chmod a+x /usr/local/bin/protoc
script:
- tox -e flake8
- ipfs daemon --offline --init &
- IPFS_PID=$!
- sleep 1
- tox -e $(echo py${TRAVIS_PYTHON_VERSION} | cut -f1,2 -d. | tr -d . | sed -e 's/pypypy/pypy/')
- kill $IPFS_PID
- codecov