-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.travis.yml
More file actions
58 lines (51 loc) · 1.65 KB
/
.travis.yml
File metadata and controls
58 lines (51 loc) · 1.65 KB
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
# Build SocNetV images for Linux and macOS
# https://socnetv.org
# Last Update: Mar 2026
# Copyright (c) 2026 by Dimitris Kalamaras
#
# This script builds SocNetV binaries ONLY when the commit message contains [travis]
#
# Exclude the continuous tag to avoid rebuild loops when uploadtool pushes it
branches:
except:
- /^(?i:continuous)$/
language: cpp
env:
global:
- SOCNETV_VERSION=3.4
- UPLOADTOOL_ISPRERELEASE=true
jobs:
include:
- os: linux
compiler: gcc
dist: jammy # Ubuntu 22.04 — replaces focal (20.04)
env: FAILURES=TRUE
if: commit_message =~ /\[travis\]/ AND commit_message !~ /\[skip linux\]/
- os: osx
compiler: clang
env: FAILURES=TRUE
osx_image: xcode15.2 # replaces xcode14.2
if: commit_message =~ /\[travis\]/ AND commit_message !~ /\[skip osx\]/
cache:
directories:
- /opt/homebrew
- /Users/travis/Library/Caches/Homebrew
exclude:
- os: osx
compiler: gcc
allow_failures:
- env: FAILURES=TRUE
before_install:
- chmod +x scripts/travis_before.sh
- ./scripts/travis_before.sh
install:
- chmod +x scripts/travis_install_deps.sh
- ./scripts/travis_install_deps.sh
script:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then chmod +x scripts/travis_make_build_linux.sh; fi
- '[ "$TRAVIS_OS_NAME" != linux ] || ./scripts/travis_make_build_linux.sh'
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then chmod +x scripts/travis_make_build_macos.sh; fi
- '[ "$TRAVIS_OS_NAME" != osx ] || ./scripts/travis_make_build_macos.sh'
after_success:
- chmod +x scripts/travis_upload_packages.sh
- ./scripts/travis_upload_packages.sh