forked from NervanaSystems/neon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (32 loc) · 1.62 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ----------------------------------------------------------------------------
# Copyright 2014 Nervana Systems Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# This will generate CPU only tests, to get other tests, pass in the
# appropriate make build arguments, ex:
# tox -- -e CPU=1 GPU=1 DIST=1
[tox]
envlist = py27, py34
[testenv]
setenv =
# need to manually restore tox environment bin dir to ensure appropriate python
# get picked up. tox sets PATH but our manual setting clobbers this.
PATH={envbindir}:/usr/local/cuda/bin:/Developer/NVIDIA/CUDA-6.5/bin:{env:PATH:}
LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib:/Developer/NVIDIA/CUDA-6.5/bin:/usr/local/lib:{env:LD_LIBRARY_PATH:}
whitelist_externals = make
install_command = make {posargs:-e CPU=1} {packages} install
commands = make {posargs:-e CPU=1} test