summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorBram Wasti <bwasti@fb.com>2016-12-20 10:38:43 -0800
committerBram Wasti <bwasti@fb.com>2016-12-20 10:38:43 -0800
commit99fa9e7ae21e81e809a33ce7d3e029ff2fc6f1a4 (patch)
tree2ab97442f1aeb3438c6e61534151688b63319527 /.travis.yml
parent50e2a1515e0b4031d669c7e5ea84c1a41e8d4cd7 (diff)
downloadpytorch-99fa9e7ae21e81e809a33ce7d3e029ff2fc6f1a4.tar.gz
pytorch-99fa9e7ae21e81e809a33ce7d3e029ff2fc6f1a4.tar.bz2
pytorch-99fa9e7ae21e81e809a33ce7d3e029ff2fc6f1a4.zip
fixed yml extension to be recognized by travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000000..aa8b718366
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,18 @@
+language: cpp
+
+compiler: gcc
+
+install:
+ - sudo apt-get install libprotobuf-dev protobuf-compiler libatlas-base-dev libgoogle-glog-dev libgtest-dev liblmdb-dev libleveldb-dev libsnappy-dev python-dev python-numpy libiomp-dev libopencv-dev nvidia-cuda-toolkit
+ - wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.44-1_amd64.deb
+ - sudo dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb
+ - sudo apt-get update
+ - sudo apt-get install cuda
+
+script:
+ - mkdir build && cd build && cmake .. && make
+
+# safelist
+branches:
+ only:
+ - master