1 # Use a build matrix to do two builds in parallel:
2 # one using CMake, and one using make.
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
12 # Cache Ubuntu apt packages.
18 - export NUM_THREADS=4
19 - export SCRIPTS=./scripts/travis
22 - sudo -E $SCRIPTS/travis_install.sh
25 - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
26 - if ! $WITH_CMAKE; then $SCRIPTS/travis_setup_makefile_config.sh; fi
28 script: $SCRIPTS/travis_build_and_test.sh
31 # Emails are sent to the committer's git-configured email address by default,
32 # but only if they have access to the repository. To enable Travis on your
33 # public fork of Caffe, just go to travis-ci.org and flip the switch on for
34 # your Caffe fork. To configure your git email address, use:
35 # git config --global user.email me@example.com
40 # IRC notifications disabled by default.
41 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
44 # - "chat.freenode.net#caffe"
46 # - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"