forked from VowpalWabbit/vowpal_wabbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (65 loc) · 2.09 KB
/
.travis.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: cpp
compiler:
- gcc
addons:
apt:
sources:
- george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3
packages:
- cmake
- cmake-data
before_install:
# Remove cmake ppa
- sudo add-apt-repository -y --remove "ppa:george-edison55/precise-backports"
#### begin g++ 4.9
# ppa for g++ 4.9 (first version that supports complete c++11. i.e. <regex>)
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update
- sudo apt-get install gcc-4.9 g++-4.9
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
- sudo add-apt-repository -y --remove "ubuntu-toolchain-r-test"
#### end g++ 4.9
- sudo apt-get update -qq
- sudo apt-get install -qq libboost-all-dev
- sudo apt-get install maven
#### begin cpprest
- sudo apt-get install g++ git make zlib1g-dev libboost-all-dev libssl-dev
- git clone https://github.com/Microsoft/cpprestsdk.git casablanca
- cd casablanca/Release
- mkdir build
- cd build
- cmake ..
- make
- sudo make install
- cd ../../../
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
#### end cpprest
- sudo pip install cpp-coveralls wheel
# use miniconda for python package testing
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda create -q -n test-python27 python=2.7 nomkl numpy scipy scikit-learn
script:
- make all
- make python
- mvn clean test -f java/pom.xml
- make test
- make rl_clientlib_test
- cd test
- ./test_race_condition.sh
- cd ..
- make test_gcov --always-make
- cd python
- source activate test-python27
- pip install pytest readme_renderer pandas
- python setup.py check -mrs
- python setup.py install
- py.test tests
- source deactivate
- cd ..
after_success:
- coveralls --exclude lib --exclude tests --gcov-options '\-lp'