forked from zaphoyd/websocketpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (46 loc) · 1.43 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
dist: xenial
sudo: false
language: cpp
matrix:
include:
- os: linux
compiler: gcc
cache:
directories:
- $HOME/boost
- os: osx
osx_image: xcode9.4
compiler: clang
cache:
directories:
- $HOME/Library/Caches/Homebrew
- os: osx
osx_image: xcode10.2
compiler: clang
cache:
directories:
- $HOME/Library/Caches/Homebrew
before_cache:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew cleanup;
fi
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
test -d $HOME/boost/lib || (wget -nv https://sourceforge.net/projects/boost/files/boost/1.65.1/boost_1_65_1.tar.gz && tar xf boost_1_65_1.tar.gz && cd boost_1_65_1 && ./bootstrap.sh --prefix=$HOME/boost && ./b2 -j$(nproc) install);
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew upgrade boost openssl cmake coreutils || true;
fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/websocketpp -DBOOST_ROOT=$HOME/boost -DBUILD_TESTS=1 .;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/websocketpp '-DCMAKE_PREFIX_PATH=/usr/local/opt/boost;/usr/local/opt/openssl' -DBUILD_TESTS=1 .;
fi
- make -j$(nproc) install
- make test
notifications:
email:
on_success: never
on_failure: always