-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (40 loc) · 907 Bytes
/
.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
language: cpp
sudo: required
branches:
only:
- master
matrix:
include:
- os: linux
dist: trusty
compiler: gcc
- os: osx
osx_image: xcode7.1
compiler: clang
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ];
then
brew update > /dev/null 2>&1;
brew install --quite cmake;
brew install --quite boost;
brew install --quiet tbb --c++11;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ];
then
sudo add-apt-repository --yes ppa:george-edison55/cmake-3.x;
sudo apt-get update -qq;
sudo apt-get purge -qq cmake;
sudo apt-get install -qq cmake;
cmake --version;
sudo apt-get install -qq libboost-dev libtbb-dev;
fi
before_script:
- cmake .;
script:
- export OMP_NUM_THREADS=2;
- make;
- ./MatrixMultiply;
notifications:
email:
on_success: change
on_failure: always