From 9045fd20eec25b8a59f8a196bacf69d0b157c6a5 Mon Sep 17 00:00:00 2001 From: Jeff Donahue Date: Mon, 14 Jul 2014 13:31:13 -0700 Subject: [PATCH 1/4] Add --keep-going flag to first make so that any targets that can be built are built; write out full -j flag as --jobs for clarity. --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fcea38c8f47..7951b2e78f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,12 +24,12 @@ before_script: - 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 + - make --jobs=$NUM_THREADS all + - make --jobs=$NUM_THREADS test + - make --jobs=$NUM_THREADS warn + - make --jobs=$NUM_THREADS lint branches: only: - master From 89159f395c02d5dab59d4658e4121fd981d89363 Mon Sep 17 00:00:00 2001 From: Jeff Donahue Date: Mon, 14 Jul 2014 13:37:13 -0700 Subject: [PATCH 2/4] Run Travis build on all branches (remove whitelist from .travis.yml). --- .travis.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7951b2e78f2..19ef68375e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,11 +30,6 @@ script: - make --jobs=$NUM_THREADS test - make --jobs=$NUM_THREADS warn - make --jobs=$NUM_THREADS lint -branches: - only: - - master - - dev - - travisci 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 From 9c65fbaa865829e4b479e43eae72cf8f5f09afcc Mon Sep 17 00:00:00 2001 From: Jeff Donahue Date: Mon, 14 Jul 2014 13:43:08 -0700 Subject: [PATCH 3/4] Replace CUSTOM_CXX env var to specify non-default C++ compiler. --- Makefile | 5 +++++ Makefile.config.example | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ad3c1bb41c0..00f67c978dc 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/Makefile.config.example b/Makefile.config.example index 81effb481f3..17c90016f75 100644 --- a/Makefile.config.example +++ b/Makefile.config.example @@ -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 From 97d6ccfda5ec371b8113713f01b86ac54135ff58 Mon Sep 17 00:00:00 2001 From: Jeff Donahue Date: Mon, 14 Jul 2014 13:46:09 -0700 Subject: [PATCH 4/4] Add blank lines between fields for readability. --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 19ef68375e4..1f780471b3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,21 @@ 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 - @@ -19,10 +23,12 @@ install: - 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 --keep-going --jobs=$NUM_THREADS all test warn lint - make runtestnogpu @@ -30,6 +36,7 @@ script: - 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 @@ -39,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: