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