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 - WITH_CUDA=false WITH_CMAKE=true PYTHON_VERSION=3
11 language: cpp
13 # Cache Ubuntu apt packages.
14 cache:
15 apt: true
16 directories:
17 - /home/travis/miniconda
18 - /home/travis/miniconda2
19 - /home/travis/miniconda3
21 compiler: gcc
23 before_install:
24 - export NUM_THREADS=4
25 - export SCRIPTS=./scripts/travis
26 - export CONDA_DIR="/home/travis/miniconda$PYTHON_VERSION"
28 install:
29 - sudo -E $SCRIPTS/travis_install.sh
31 before_script:
32 - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/cuda/lib64:$CONDA_DIR/lib
33 - export PATH=$CONDA_DIR/bin:$PATH
34 - if ! $WITH_CMAKE; then $SCRIPTS/travis_setup_makefile_config.sh; fi
36 script: $SCRIPTS/travis_build_and_test.sh
38 notifications:
39 # Emails are sent to the committer's git-configured email address by default,
40 # but only if they have access to the repository. To enable Travis on your
41 # public fork of Caffe, just go to travis-ci.org and flip the switch on for
42 # your Caffe fork. To configure your git email address, use:
43 # git config --global user.email me@example.com
44 email:
45 on_success: always
46 on_failure: always
48 # IRC notifications disabled by default.
49 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
50 # irc:
51 # channels:
52 # - "chat.freenode.net#caffe"
53 # template:
54 # - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"