summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJeff Donahue <jeff.donahue@gmail.com>2014-07-12 04:27:36 -0700
committerJeff Donahue <jeff.donahue@gmail.com>2014-07-14 02:18:16 -0700
commit89d50ca20746517f71e7c7c121401d09d40e3ebc (patch)
tree8f7e514fe9c2772690745bb7a0b3414e2818fd9c /.travis.yml
parent24bfd03da3da5342034be7ba18116dcf0596216c (diff)
downloadcaffeonacl-89d50ca20746517f71e7c7c121401d09d40e3ebc.tar.gz
caffeonacl-89d50ca20746517f71e7c7c121401d09d40e3ebc.tar.bz2
caffeonacl-89d50ca20746517f71e7c7c121401d09d40e3ebc.zip
@jeffdonahue's tweaks to .travis.yml config:
-Add (CPU-only) test, lint, warn and parallel (-j 4) to travis CI build. -Add /usr/local/lib to travis config (seems needed for LMDB). -Put export in "before_script"; disable clang build -- doesn't work on Linux. -Cache Ubuntu apt packages. -Install bc package to hopefully suppress "bc: not found" errors -Get apt packages before_install as suggested by Travis official docs -Remove specified email address and IRC notifications (emails are sent to the committer by default; others can view build results in public Travis feed, on pull requests, etc.).
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml44
1 files changed, 28 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml
index 1dd8a2d8..fcea38c8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,18 @@
language: cpp
+# Cache Ubuntu apt packages.
+cache: apt
compiler:
- gcc
- - clang
+# Disable clang build: doesn't seem to work on Linux.
+# (@jeffdonahue: Travis buildbot's failure behavior is similar to what I see
+# building on Linux.)
+# - clang
before_install:
- echo $LANG
- echo $LC_ALL
- sudo apt-get -y update
+ - sudo apt-get -y install wget git curl python-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev protobuf-compiler libatlas-dev libatlas-base-dev bc
install:
- - sudo apt-get -y install wget git curl python-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev protobuf-compiler libatlas-dev libatlas-base-dev
- 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
@@ -16,26 +21,33 @@ install:
- cd /tmp/mdb-mdb/libraries/liblmdb/ && make && sudo make install && cd -
before_script:
- mv Makefile.config.example Makefile.config
+ - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/lib
+ - export NUM_THREADS=4
script:
- - make all
- - make test
- - LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64 make runtest
+ - make -j $NUM_THREADS all test warn lint
+ - make runtestnogpu
+ - make -j $NUM_THREADS all
+ - make -j $NUM_THREADS test
+ - make -j $NUM_THREADS warn
+ - make -j $NUM_THREADS lint
branches:
only:
- master
- dev
- travisci
notifications:
- recipients:
- - huy@huyng.com
+# Emails are sent to the committer's git-configured email address by default,
+# but only if they have access to the repository. To enable Travis on your
+# public fork of Caffe, just go to travis-ci.org and flip the switch on for
+# your Caffe fork. To configure your git email address, use:
+# git config --global user.email me@example.com
email:
- on_success: change
+ on_success: always
on_failure: always
- irc:
- channels:
- - "chat.freenode.net#caffe"
- template:
- - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"
-os:
- - linux
- - osx
+# IRC notifications disabled by default.
+# Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
+# irc:
+# channels:
+# - "chat.freenode.net#caffe"
+# template:
+# - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"