# Copyright (c) 2015, NVIDIA CORPORATION.  All rights reserved.

language: python
python:
    2.7
compiler: gcc   # for Caffe
sudo: required  # for Caffe
env:
    global:
        # Make
        - NUM_THREADS=4
        # Caffe
        - WITH_CUDA=false
        - WITH_CMAKE=false
before_install:
    - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    - export PATH=/home/travis/miniconda/bin:$PATH
install:
    # Caffe
    - pushd .
    - ./scripts/travis/install-caffe.sh $(pwd)/deps/caffe

    # Torch
    - ./scripts/travis/install-torch.sh $(pwd)/deps/torch &> $(pwd)/torch-install-log.txt || (cat $(pwd)/torch-install-log.txt && false)

    # DIGITS
    - sudo apt-get install graphviz
    # conda (fast)
    - conda install --yes gevent greenlet
    # pip (slow)
    - pip install -r requirements.txt
    - pip install -r requirements_test.txt
before_script:
    - export CAFFE_HOME=$(pwd)/deps/caffe
    - source $(pwd)/deps/torch/install/bin/torch-activate
    # Disable OpenMP multi-threading
    - export OMP_NUM_THREADS=1
script:
    ./digits-test -v --with-coverage --cover-package=digits,tools,scripts
after_success:
    coveralls

# Copyright (c) 2015, NVIDIA CORPORATION.  All rights reserved.

language: python
python:
    2.7
compiler: gcc   # for Caffe
sudo: required  # for Caffe
env:
    global:
        # Make
        - NUM_THREADS=4
        # Caffe
        - WITH_CUDA=false
        - WITH_CMAKE=false
before_install:
    - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    - export PATH=/home/travis/miniconda/bin:$PATH
install:
    # Caffe
    - pushd .
    - ./scripts/travis/install-caffe.sh $(pwd)/deps/caffe

    # Torch
    - ./scripts/travis/install-torch.sh $(pwd)/deps/torch

    # DIGITS
    - sudo apt-get install graphviz
    # conda (fast)
    - conda install --yes gevent greenlet
    # pip (slow)
    - pip install -r requirements.txt
    - pip install -r requirements_test.txt
before_script:
    - export CAFFE_HOME=$(pwd)/deps/caffe
    - source $(pwd)/deps/torch/install/bin/torch-activate
    # Disable OpenMP multi-threading
    - export OMP_NUM_THREADS=1
script:
    ./digits-test -v --with-coverage --cover-package=digits,tools,scripts
after_success:
    coveralls

Revert "Reduce Torch7 install verbosity"
Revert "Reduce Torch7 install verbosity"

This reverts commit a25e13acd0c24178a18012a706505f57eaeb894d.
