Merge pull request #5210 from ftokarev/patches
[platform/upstream/caffeonacl.git] / .travis.yml
1 dist: trusty
2 sudo: required
3
4 language: cpp
5 compiler: gcc
6
7 env:
8   global:
9     - NUM_THREADS=4
10   matrix:
11     # Use a build matrix to test many builds in parallel
12     # envvar defaults:
13     #   WITH_CMAKE: false
14     #   WITH_PYTHON3: false
15     #   WITH_IO: true
16     #   WITH_CUDA: false
17     #   WITH_CUDNN: false
18     - BUILD_NAME="default-make"
19 #   - BUILD_NAME="python3-make" WITH_PYTHON3=true
20     - BUILD_NAME="no-io-make" WITH_IO=false
21     - BUILD_NAME="cuda-make" WITH_CUDA=true
22     - BUILD_NAME="cudnn-make" WITH_CUDA=true WITH_CUDNN=true
23
24     - BUILD_NAME="default-cmake" WITH_CMAKE=true
25     - BUILD_NAME="python3-cmake" WITH_CMAKE=true WITH_PYTHON3=true
26     - BUILD_NAME="no-io-cmake" WITH_CMAKE=true WITH_IO=false
27     - BUILD_NAME="cuda-cmake" WITH_CMAKE=true WITH_CUDA=true
28     - BUILD_NAME="cudnn-cmake" WITH_CMAKE=true WITH_CUDA=true WITH_CUDNN=true
29
30 cache:
31   apt: true
32   directories:
33     - ~/protobuf3
34
35 before_install:
36   - source ./scripts/travis/defaults.sh
37
38 install:
39   - sudo -E ./scripts/travis/install-deps.sh
40   - ./scripts/travis/setup-venv.sh ~/venv
41   - source ~/venv/bin/activate
42   - ./scripts/travis/install-python-deps.sh
43
44 before_script:
45   - ./scripts/travis/configure.sh
46
47 script:
48   - ./scripts/travis/build.sh
49   - ./scripts/travis/test.sh
50
51 notifications:
52 # Emails are sent to the committer's git-configured email address by default,
53 # but only if they have access to the repository.  To enable Travis on your
54 # public fork of Caffe, just go to travis-ci.org and flip the switch on for
55 # your Caffe fork.  To configure your git email address, use:
56 #     git config --global user.email me@example.com
57   email:
58     on_success: always
59     on_failure: always
60
61 # IRC notifications disabled by default.
62 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
63 #   irc:
64 #     channels:
65 #       - "chat.freenode.net#caffe"
66 #     template:
67 #       - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"