-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
85 lines (60 loc) · 2.21 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
# Build SocNetV on Linux and macOS
# https://socnetv.org
# Last Update: April 21, 2023
# Copyright (c) 2023 by Dimitris Kalamaras
#
#
# This script builds SocNetV binaries ONLY on tags (i.e. 3.0 or 3.0-beta1).
# It will also build binaries if the commit message contains [travis] or [ci]
#
# legacy setting, we use it only to exclude (re)building each time
# uploadtool creates the continuous tag (when uploading)
# see: https://github.com/probonopd/uploadtool#usage
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/
language: cpp
env:
global:
- SOCNETV_VERSION=3.1 # We use it to name packages on non-tagged commits
# Set this variable to be read by uploadtool, which will only use it to mark continuous releases are prerelease.
- UPLOADTOOL_ISPRERELEASE=true
# Build matrix definitions explicitly define our build
# maybe add a linux/clang pair ?
jobs:
include:
- os: linux
compiler: gcc
dist: focal
env: FAILURES=true
if: tag IS present OR commit_message =~ /\[travis\]|\[ci\]/ AND commit_message !~ /\[skip linux\]/
- os: osx
compiler: clang
env: FAILURES=true
osx_image: xcode13.1
if: tag IS present OR commit_message =~ /\[travis\]|\[ci\]/ AND commit_message !~ /\[skip osx\]/
exclude:
- os: osx
compiler: gcc
allow_failures:
# define rows that are allowed to fail in the build matrix.
- env: FAILURES=TRUE
before_install:
# Run preparation script, before installing our dependencies, to add repos etc.
- chmod +x .travis_before.sh
- ./.travis_before.sh
install:
# Run script to install our dependencies.
- chmod +x .travis_install_deps.sh
- ./.travis_install_deps.sh
script:
# Run script to build our app.
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then chmod +x .travis_make_build_linux.sh; fi
- '[ "$TRAVIS_OS_NAME" != linux ] || ./.travis_make_build_linux.sh'
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then chmod +x .travis_make_build_macos.sh; fi
- '[ "$TRAVIS_OS_NAME" != osx ] || ./.travis_make_build_macos.sh'
after_success:
# Run script to upload our packages
- chmod +x .travis_upload_packages.sh
- ./.travis_upload_packages.sh