]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - jacinto-ai/caffe-jacinto.git/blob - .travis.yml
Merge pull request #752 from Yangqing/sweep
[jacinto-ai/caffe-jacinto.git] / .travis.yml
1 language: cpp
3 # Cache Ubuntu apt packages.
4 cache: apt
6 compiler:
7   - gcc
8 # Disable clang build: doesn't seem to work on Linux.
9 # (@jeffdonahue: Travis buildbot's failure behavior is similar to what I see
10 # building on Linux.)
11 #   - clang
13 before_install:
14   - echo $LANG
15   - echo $LC_ALL
16   - sudo apt-get -y update
17   - sudo apt-get -y install wget git curl python-dev python-numpy libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev protobuf-compiler libatlas-dev libatlas-base-dev bc
19 install:
20   - 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
21   - cd /tmp/glog-0.3.3 && ./configure && make && sudo make install && cd -
22   - 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
23   - sudo apt-get -y update && sudo apt-get -y install cuda
24   - 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
25   - cd /tmp/mdb-mdb/libraries/liblmdb/ && make && sudo make install && cd -
27 before_script:
28   - mv Makefile.config.example Makefile.config
29   - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
30   - export NUM_THREADS=4
32 script:
33   # CPU-GPU: build only.
34   - export CPU_ONLY=0
35   - make --keep-going --jobs=$NUM_THREADS all
36   - make clean
37   # CPU-only: comprehensive.
38   - export CPU_ONLY=1
39   - make --keep-going --jobs=$NUM_THREADS all test warn lint
40   - make runtest
41   - make --jobs=$NUM_THREADS all
42   - make --jobs=$NUM_THREADS test
43   - make --jobs=$NUM_THREADS warn
44   - make --jobs=$NUM_THREADS lint
45   - make --jobs=$NUM_THREADS pycaffe
47 notifications:
48 # Emails are sent to the committer's git-configured email address by default,
49 # but only if they have access to the repository.  To enable Travis on your
50 # public fork of Caffe, just go to travis-ci.org and flip the switch on for
51 # your Caffe fork.  To configure your git email address, use:
52 #     git config --global user.email me@example.com
53   email:
54     on_success: always
55     on_failure: always
57 # IRC notifications disabled by default.
58 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
59 #   irc:
60 #     channels:
61 #       - "chat.freenode.net#caffe"
62 #     template:
63 #       - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"