pytorch-dnc/.travis.yml
ixaxaar 7743d04e6c 😭
2017-12-01 14:01:52 +05:30

22 lines
885 B
YAML

language: python
python:
- "3.6"
# command to install dependencies
before_install:
- sudo apt-get -qq update
- sudo apt-get install software-properties-common
- sudo apt-get install libopenblas-dev
- sudo ln -s /usr/lib/libopenblas.so /usr/lib/libopenblas.so.3
- wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb -O /tmp/cuda.deb
- sudo dpkg -i /tmp/cuda.deb
- sudo apt-get update
- sudo apt-get install cuda
install:
- pip install http://download.pytorch.org/whl/cu75/torch-0.2.0.post3-cp36-cp36m-manylinux1_x86_64.whl
- pip install numpy
- pip install visdom
# command to run tests
script:
- sudo cp -pr /home/travis/virtualenv/python3.6/lib/python3.6/site-packages/torch/lib/libgomp-ae56ecdc.so.1.0.0 /usr/lib/x86_64-linux-gnu/libgomp.so.1
- pip install -e .
- pytest ./test