forked from microsoft/Multiverso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (43 loc) · 1.36 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
language: cpp
sudo: required
dist: trusty
# solving MPI conflict https://docs.travis-ci.com/user/languages/cpp#OpenMP-projects
before_install:
- test -n $CC && unset CC
- test -n $CXX && unset CXX
install:
- sudo apt-get install -y libopenmpi-dev openmpi-bin build-essential
# for boost unit test
- sudo apt-get install -y libboost-test-dev
# for testing python binding
- sudo apt-get install -y gfortran libblas-dev liblapack-dev libatlas-base-dev
- sudo apt-get install -y cmake python-numpy python-scipy python-nose
# for testing lua binding
#- curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash -e
#- git clone https://github.com/torch/distro.git ~/torch --recursive
#- cd ~/torch; ./install.sh -b
#- source ~/.bashrc
before_script:
- cd $TRAVIS_BUILD_DIR
- mkdir build && cd build && cmake ..
script:
- make && sudo make install
# run cpp tests
# - mpirun -np 4 ./Test/multiverso.test kv
# - mpirun -np 4 ./Test/multiverso.test array
# - mpirun -np 4 ./Test/multiverso.test allreduce
# - ./Test/unittests/multiverso.ut --log_level=test_suite
# lua tests
#- cd ../binding/lua/
#- make install
# - make test
# python tests
# - cd ../binding/python/
# - sudo python setup.py install
# - sudo nosetests # sudo is needed when testing python on travis
notifications:
email: false
matrix:
include:
- compiler: gcc
- compiler: clang