-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
68 lines (61 loc) · 1.89 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
66
67
68
sudo: required
dist: trusty
language: cpp
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- libasound2-dev
- libpthread-stubs0-dev
env: COMPILER=g++-5
- os: linux
compiler: clang
addons:
apt:
packages:
- libasound2-dev
- libpthread-stubs0-dev
env:
- COMPILER=clang++
- CPPFLAGS="-I /usr/include/c++/v1"
- os: osx
compiler: clang
env: COMPILER=clang++
# GCC is linked to clang, so we don't need to compile twice for same compiler/platform
before_install:
# Mac OS X images originally ship with CMake 3.0 and OpenSSL 0.9
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade cmake ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade openssl; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install opus; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cryptopp; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link openssl --force; fi # Force to use homebrew version
before_script:
- echo $TRAVIS_OS_NAME
- cmake --version
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DTEST_OUTPUT_CONSOLE=ON ../
script: make
after_script:
- cd build
- chmod +x test/Tests
- test/Tests
before_deploy:
- ls ./
- mv build/OHMCommStandalone build/OHMCommStandalone-$TRAVIS_OS_NAME-$TRAVIS_TAG
deploy:
provider: releases
api_key: "eCpBRcWXtxWlRBxGVQFwMq+zR5ga4/TwZZV1W5pgJd1mT6sECTFaYr5Z3T7MOoSWkBBYFQ56ulIi4rMrcoN1WH7kbqX6RwfwYRm3LakqsLD9iRwLXzLNNke2RAAC2Z7UA8GgFaVtVHJxHj4DVLMSva9PqS2K3F9xQmiTDKp4LuU="
file-glob: true
file: "build/OHMCommStandalone-*"
skip_cleanup: true
on:
tags: true
all_branches: true