forked from chronoxor/CppServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
92 lines (86 loc) · 2.31 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Programming language definition
language: cpp
# OS environment
dist: focal
# Build matrix (OS, compiler)
matrix:
include:
- name: "Linux (GCC compiler)"
os: linux
compiler: gcc
env: OS=linux COMPILER=gcc GCC_VERSION=10
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-10
- g++-10
- cmake
- doxygen
- graphviz
- binutils-dev
- python3
- python3-pip
- python3-setuptools
- uuid-dev
update: true
- name: "Linux (Clang compiler)"
os: linux
compiler: clang
env: OS=linux COMPILER=clang CLANG_VERSION=11
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- clang-11
- cmake
- doxygen
- graphviz
- binutils-dev
- python3
- python3-pip
- python3-setuptools
- uuid-dev
update: true
- name: "MacOS"
os: osx
compiler: clang
env: OS=osx COMPILER=clang
osx_image: xcode12.2
# Branches to build
branches:
only:
- master
# Scripts that run before install
before_install:
# gcc, clang
- if [ "$OS" != "osx" ] && [ "$COMPILER" = "gcc" ]; then export CC="gcc-${GCC_VERSION}" CXX="g++-${GCC_VERSION}"; fi
- if [ "$OS" != "osx" ] && [ "$COMPILER" = "clang" ]; then export CC="clang-${CLANG_VERSION}" CXX="clang++-${CLANG_VERSION}"; fi
# brew, doxygen, graphviz
- if [ "$OS" == "osx" ]; then brew update; fi
- if [ "$OS" == "osx" ]; then brew install doxygen; fi
- if [ "$OS" == "osx" ]; then brew install graphviz; fi
# openssl
- if [ "$OS" == "osx" ]; then brew install openssl; fi
- if [ "$OS" == "osx" ]; then export OPENSSL_ROOT_DIR=$(brew --prefix openssl); fi
# cmake
- cmake --version
# doxygen support
- export doxygen=yes
# git
- git config --global user.name "Travis CI"
- git config --global user.email "[email protected]"
- git config --global push.default simple
# gil
- pip3 install gil
- gil update
# Build scripts
script:
- cd build
- ./unix.sh
# Don't send notifications on success
notifications:
email:
on_success: never