Skip to content

Commit 4c81610

Browse files
author
Dane Springmeyer
committed
install nose + use ccache
1 parent 6d8ec08 commit 4c81610

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ git:
66

77
sudo: false
88

9+
cache:
10+
directories:
11+
- mason_packages
12+
- $HOME/.ccache
13+
914
addons:
1015
apt:
1116
sources:
@@ -16,8 +21,15 @@ addons:
1621

1722
before_install:
1823
- export MASON_BUILD=true
19-
- export CXX="clang++-3.5"
20-
- export CC="clang-3.5"
24+
- if [[ $(uname -s) == 'Linux' ]]; then
25+
export CXX="ccache clang++-3.5 -Qunused-arguments";
26+
# intentionally pass c++ compiler for CC since that is what setup.py uses
27+
export CC="ccache clang++-3.5 -Qunused-arguments";
28+
export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python2.7/site-packages;
29+
else
30+
export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python/site-packages;
31+
fi;
32+
- PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user nose
2133
- python --version
2234

2335
install:

0 commit comments

Comments
 (0)