-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (34 loc) · 1.16 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
language: python
python:
- "3.6"
install:
- sudo apt-get update
# conda install
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
# download and install ipfs and return to home directory
- wget https://dist.ipfs.io/go-ipfs/v0.4.13/go-ipfs_v0.4.13_linux-amd64.tar.gz
- tar xvfz go-ipfs_v0.4.13_linux-amd64.tar.gz
- export PATH=$PATH:$PWD/go-ipfs/
- ipfs init
# create env and install dependencies
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION nose pip
- source activate test-environment
- pip install coveralls ipfsapi flask requests
# install the pyxain package
- pip install --editable .
# set env variables
- export FLASK_APP=pyxain.api
- export FLASK_DEBUG=true
# run ipfs daemon
- ipfs daemon &
- sleep 5
script:
- nosetests tests/ --with-coverage --cover-package=pyxain --verbose
after_success:
- coveralls