Skip to content

Commit

Permalink
Merge pull request #694 from jeffdonahue/travis-tweaks
Browse files Browse the repository at this point in the history
Travis tweaks -- make --keep-going; build on all branches; replace CUSTOM_CXX <eom>
  • Loading branch information
jeffdonahue committed Jul 14, 2014
2 parents 856f06d + 97d6ccf commit 43300d0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
23 changes: 13 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
language: cpp

# Cache Ubuntu apt packages.
cache: apt

compiler:
- gcc
# 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:
- 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 -

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 -j $NUM_THREADS all test warn lint
- make --keep-going --jobs=$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
- make --jobs=$NUM_THREADS all
- make --jobs=$NUM_THREADS test
- make --jobs=$NUM_THREADS warn
- make --jobs=$NUM_THREADS lint

notifications:
# 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
Expand All @@ -44,6 +46,7 @@ notifications:
email:
on_success: always
on_failure: always

# IRC notifications disabled by default.
# Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
# irc:
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ ifeq ($(OSX), 1)
endif
endif

# Custom compiler
ifdef CUSTOM_CXX
CXX := $(CUSTOM_CXX)
endif

# Debugging
ifeq ($(DEBUG), 1)
COMMON_FLAGS := -DDEBUG -g -O0
Expand Down
2 changes: 1 addition & 1 deletion Makefile.config.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# To customize your choice of compiler, uncomment and set the following.
# N.B. the default for Linux is g++ and the default for OSX is clang++
# CXX := g++
# CUSTOM_CXX := g++

# CUDA directory contains bin/ and lib/ directories that we need.
CUDA_DIR := /usr/local/cuda
Expand Down

0 comments on commit 43300d0

Please sign in to comment.