From: Jeff Donahue Date: Sat, 12 Jul 2014 11:27:36 +0000 (-0700) Subject: @jeffdonahue's tweaks to .travis.yml config: X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89d50ca20746517f71e7c7c121401d09d40e3ebc;p=platform%2Fupstream%2Fcaffe.git @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.). --- diff --git a/.travis.yml b/.travis.yml index 1dd8a2d..fcea38c 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}"