summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorEvan Shelhamer <shelhamer@imaginarynumber.net>2014-07-17 09:32:29 (GMT)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>2014-07-17 09:58:01 (GMT)
commitf9f65e50dd44dc5fb43466f4364b2f414a1978f6 (patch)
tree131cfa21fcfdbff2d51ad48d188e4511f0872610 /.travis.yml
parent5b302f09dc844fe62dec653596838678214d777c (diff)
downloadcaffeonacl-f9f65e50dd44dc5fb43466f4364b2f414a1978f6.zip
caffeonacl-f9f65e50dd44dc5fb43466f4364b2f414a1978f6.tar.gz
caffeonacl-f9f65e50dd44dc5fb43466f4364b2f414a1978f6.tar.bz2
check CPU-only everything, CPU + GPU build with travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 17b483c..c5445fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,6 +19,8 @@ before_install:
install:
- wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz -O /tmp/glog-0.3.3.tar.gz && tar -C /tmp -xzvf /tmp/glog-0.3.3.tar.gz && rm /tmp/glog-0.3.3.tar.gz
- cd /tmp/glog-0.3.3 && ./configure && make && sudo make install && cd -
+ - curl http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_6.0-37_amd64.deb -o /tmp/cuda_install.deb && sudo dpkg -i /tmp/cuda_install.deb && rm /tmp/cuda_install.deb
+ - sudo apt-get -y update && sudo apt-get -y install cuda
- curl https://gitorious.org/mdb/mdb/archive/7f038d0f15bec57b4c07aa3f31cd5564c88a1897.tar.gz -o /tmp/mdb.tar.gz && tar -C /tmp -xzvf /tmp/mdb.tar.gz && rm /tmp/mdb.tar.gz
- cd /tmp/mdb-mdb/libraries/liblmdb/ && make && sudo make install && cd -
@@ -26,9 +28,14 @@ before_script:
- mv Makefile.config.example Makefile.config
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
- export NUM_THREADS=4
- - export CPU_ONLY=1
script:
+ # CPU-GPU: build only.
+ - export CPU_ONLY=0
+ - make --keep-going --jobs=$NUM_THREADS all
+ - make clean
+ # CPU-only: comprehensive.
+ - export CPU_ONLY=1
- make --keep-going --jobs=$NUM_THREADS all test warn lint
- make runtest
- make --jobs=$NUM_THREADS all