forked from MASD-Project/dogen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (100 loc) · 3.29 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# -*- mode: yaml; tab-width: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2012 Kitanda <info@kitanda.co.uk>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
sudo: required
dist: trusty
language: cpp
git:
depth: 5
matrix:
include:
- os: osx
compiler: clang
osx_image: xcode8
env: BUILD_TYPE=Release DEPLOY="1" COMPILER="clang"
- os: osx
compiler: clang
osx_image: xcode8
env: BUILD_TYPE=Debug COMPILER="clang"
- os: linux
compiler: gcc
env: BUILD_TYPE=Release DEPLOY="1" COMPILER="gcc" WITH_CSHARP="1"
- os: linux
compiler: clang
env: BUILD_TYPE=Release COMPILER="clang"
- os: linux
compiler: gcc
env: BUILD_TYPE=Debug COMPILER="gcc"
- os: linux
compiler: clang
env: BUILD_TYPE=Debug COMPILER="clang"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
install:
- export SCRIPTS_DIR=${TRAVIS_BUILD_DIR}/build/scripts
- source ${SCRIPTS_DIR}/travis.install.${TRAVIS_OS_NAME}.sh
script:
- JOBS=2
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
export TARGET="package run_all_tests";
export THIRD_PARTY="/tmp/dogen_deps/dogen_deps_gcc_5.3_linux_amd64";
fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
export THIRD_PARTY="/tmp/dogen_deps/dogen_deps_clang_7_3_0_osx_amd64";
if [[ $BUILD_TYPE == 'Release' ]]; then
export TARGET="package";
fi
fi
- ${SCRIPTS_DIR}/build.${TRAVIS_OS_NAME}.sh ${BUILD_TYPE} ${JOBS} ${COMPILER} ${THIRD_PARTY} ${TARGET}
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then ${SCRIPTS_DIR}/test_package.linux.sh ${BUILD_TYPE} ${COMPILER} ; fi
notifications:
email:
recipients:
- marco.craveiro@gmail.com
on_success: change
on_failure: always
webhooks:
urls:
- https://webhooks.gitter.im/e/db7439afa782608b5654
- https://buildtimetrend.herokuapp.com/travis
on_success: always
on_failure: always
deploy:
provider: releases
api_key:
secure: UdotUzhLJ7GcmwyJlpqcsvWsXxuWjoswXG7intkgxKeD5vkIT6Ng2v7ik6c/4uO9wXJ9uWV8/X/EzdZhWqFjiamMljsmFGcy4Bt37oqP6oxdlRyO/KrLM1E/xtmA1kZppuY4njCqzZnMslyzyMtsl+DH3zseOL7GQIbkL5xbecI=
file_glob: true
file: stage/pkg/*.deb
skip_cleanup: true
on:
tags: true
branch: master
condition: "${DEPLOY} = 1"
deploy:
provider: bintray
file: "${TRAVIS_BUILD_DIR}/build/output/${COMPILER}/${BUILD_TYPE}/stage/pkg/bintray.json"
user: mcraveiro
key:
secure: IrFRrzzMnnFzj2s2hYctnvMjTf7HRe5uQVPcioAjbuNrxXX5XYmRH6ce8osxoRhcpQYS9ppCmrt8VbRBB57piWS3yKfM6WftDrmNQil7XwqowKAKm/VuX6K5psjJHRCYoNUAovwvfLmaLIWvVd+I+NkU48EXvflClXx13Qp8GtU=
on:
tags: true
branch: master
condition: "${DEPLOY} = 1"