Back-merge to dev for doc fixes + cherry-picks
[platform/upstream/caffe.git] / .travis.yml
1 # Use a build matrix to do two builds in parallel:
2 # one using CMake, and one using make.
3 env:
4   matrix:
5     - WITH_CUDA=false WITH_CMAKE=false
6     - WITH_CUDA=false WITH_CMAKE=true
7     - WITH_CUDA=true WITH_CMAKE=false
8     - WITH_CUDA=true WITH_CMAKE=true
9
10 language: cpp
11
12 # Cache Ubuntu apt packages.
13 cache: apt
14
15 compiler: gcc
16
17 before_install:
18   - export NUM_THREADS=4
19   - alias make="make --jobs=$NUM_THREADS"
20   - export SCRIPTS=./scripts/travis
21   - set -e  # fail when a script fails
22
23 install:
24   - source $SCRIPTS/travis_install.sh
25
26 before_script:
27   - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
28   - if ! $WITH_CMAKE; then source $SCRIPTS/travis_setup_makefile_config.sh; fi
29
30 script:
31   - if $WITH_CUDA; then source $SCRIPTS/travis_build.sh; else source $SCRIPTS/travis_build_and_test.sh; fi
32
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
43 # IRC notifications disabled by default.
44 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
45 #   irc:
46 #     channels:
47 #       - "chat.freenode.net#caffe"
48 #     template:
49 #       - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"