-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
.travis.yml
87 lines (78 loc) · 2.15 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
# travis continuous integration declaration for
# Emuflight
env:
matrix:
- GOAL=targets-group-1 # make all (in parallel)
- GOAL=targets-group-2
- GOAL=targets-group-3
- GOAL=targets-group-rest
global:
# - DEBUG=RELWITHDEBINFO # debug symbols
- CCACHE_SLOPPINESS="file_macro,time_macros,include_file_mtime,include_file_ctime,file_stat_matches"
- CHANGELOG="$(git log --format='%h %s (@%an, %cr)' --tags --date-order $TRAVIS_COMMIT_RANGE)"
# - MAKEFLAGS="-j 2" # each travis vm has 2 cpu cores
- PATH="$HOME/.local/bin:$PATH" # "user" installs (pip and stuff)
git:
depth: 20 # semi-quick clone
quiet: true # save on logfiles
addons:
apt:
packages:
- build-essential
- ccache
- clang
- g++
- git
- libblocksruntime-dev # required for linking on tests - http://mackyle.github.io/blocksruntime/
- libc6-i386
- llvm
- time
cache:
ccache: true
pip: true
directories:
- downloads
- tools
dist: bionic # ubuntu
language: cpp
compiler: clang
before_install:
- pip install --user --upgrade j2cli
script:
- echo "${CHANGELOG}" > CHANGELOG.md
- cat CHANGELOG.md
- ./.travis.sh # main
- ccache --show-stats
deploy:
- provider: releases
edge: true
token: "${GITHUB_TOKEN}"
name: "${TRAVIS_TAG}"
#body: "${CHANGELOG}" # broken as of 14.03.2020
tag_name: "${TRAVIS_TAG}"
target_commitish: "${TRAVIS_COMMIT}"
file_glob: true
file:
- obj/*.hex
cleanup: false # do not delete what has just been built
draft: true
prerelease: true
overwrite: true
on:
tags: true
- provider: bintray
user: "${BINTRAY2_USER}"
key: "${BINTRAY2_API_KEY}"
file: bintray-conf.json
skip_cleanup: true # do not delete what has just been built
on:
all_branches: true
#tags: true
after_deploy:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL