1 language: cpp
2 # Cache Ubuntu apt packages.
3 cache: apt
4 compiler:
5 - gcc
6 # Disable clang build: doesn't seem to work on Linux.
7 # (@jeffdonahue: Travis buildbot's failure behavior is similar to what I see
8 # building on Linux.)
9 # - clang
10 before_install:
11 - echo $LANG
12 - echo $LC_ALL
13 - sudo apt-get -y update
14 - 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
15 install:
16 - 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
17 - cd /tmp/glog-0.3.3 && ./configure && make && sudo make install && cd -
18 - 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
19 - sudo apt-get -y update && sudo apt-get -y install cuda
20 - 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
21 - cd /tmp/mdb-mdb/libraries/liblmdb/ && make && sudo make install && cd -
22 before_script:
23 - mv Makefile.config.example Makefile.config
24 - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/lib
25 - export NUM_THREADS=4
26 script:
27 - make --keep-going --jobs=$NUM_THREADS all test warn lint
28 - make runtestnogpu
29 - make --jobs=$NUM_THREADS all
30 - make --jobs=$NUM_THREADS test
31 - make --jobs=$NUM_THREADS warn
32 - make --jobs=$NUM_THREADS lint
33 notifications:
34 # Emails are sent to the committer's git-configured email address by default,
35 # but only if they have access to the repository. To enable Travis on your
36 # public fork of Caffe, just go to travis-ci.org and flip the switch on for
37 # your Caffe fork. To configure your git email address, use:
38 # git config --global user.email me@example.com
39 email:
40 on_success: always
41 on_failure: always
42 # IRC notifications disabled by default.
43 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
44 # irc:
45 # channels:
46 # - "chat.freenode.net#caffe"
47 # template:
48 # - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"