-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
117 lines (106 loc) · 3.3 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
110
111
112
113
114
115
116
language: c
sudo: required
dist: xenial
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "Q6OAiurgQl7/iZy7JfaPbUCWFe30ES35uO5eGg/0ty/fKMGAov3Bp+8oQqpmxmi6+E316cDMW3WIY9h8j79kaF4IbQNU6YcHft7Am7iFhw1Ocql1aknqqbdA/Hx9R95JUX2ZSBCTnw03GKv9JNEUuY2cV5RaJr1x+N5SfdAc3Jo="
cache:
directories:
- build/dl
matrix:
include:
- os: linux
compiler: gcc
env: MODE=windows
dist: focal
- os: linux
compiler: gcc
env: MODE=minimal
- os: linux
compiler: gcc
env: MODE=raspberrypi
- os: linux
compiler: gcc
env: MODE=static
- os: linux
compiler: gcc
env: MODE=dynamic
- os: linux
compiler: gcc
env: MODE=singlethread
- os: osx
compiler: clang
env: MODE=static
- os: osx
compiler: clang
env: MODE=dynamic
before_install:
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- scripts/ci_install_deps.sh
script:
- scripts/ci_build.sh
after_success:
- scripts/ci_after_success.sh
before_deploy:
- scripts/ci_deploy.sh
deploy:
# Deploy tagged releases to GitHub
- provider: releases
api_key: $GITHUB_API_KEY
file_glob: true
file:
- "artifacts/fwup-*-1.x86_64.rpm"
- "artifacts/fwup_*_amd64.deb"
- "artifacts/fwup-*.tar.gz"
skip_cleanup: true
on:
repo: fhunleth/fwup
tags: true
condition: $TRAVIS_OS_NAME = linux && $MODE=static
# Deploy tagged releases to GitHub
- provider: releases
api_key: $GITHUB_API_KEY
file_glob: true
file:
- "artifacts/fwup.exe"
- "artifacts/fwup.*.nupkg"
skip_cleanup: true
on:
repo: fhunleth/fwup
tags: true
condition: $TRAVIS_OS_NAME = linux && $MODE=windows
# Deploy tagged releases to GitHub
- provider: releases
api_key: $GITHUB_API_KEY
file_glob: true
file:
- "artifacts/fwup_*_armhf.deb"
skip_cleanup: true
on:
repo: fhunleth/fwup
tags: true
condition: $TRAVIS_OS_NAME = linux && $MODE=raspberrypi
# Copy all build products to S3
- provider: s3
access_key_id: $ARTIFACTS_KEY
secret_access_key: $ARTIFACTS_SECRET
bucket: $ARTIFACTS_BUCKET
skip_cleanup: true
local_dir: artifacts
upload-dir: fwup
storage_class: "REDUCED_REDUNDANCY" # See https://github.com/travis-ci/dpl/issues/291
on:
repo: fhunleth/fwup
all_branches: true
condition: $TRAVIS_OS_NAME = linux && ( $MODE=static || $MODE=windows || $MODE=raspberrypi )
addons:
coverity_scan:
project:
name: "fhunleth/fwup"
description: "Configurable firmware updates for embedded Linux"
notification_email: [email protected]
build_command_prepend: "./autogen.sh && ./configure"
build_command: "make"
branch_pattern: coverity_scan