forked from joshkunz/ashuffle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (75 loc) · 2.14 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
language: minimal
dist: bionic
services:
- docker
stages:
- name: Check
if: type = pull_request OR branch = master OR tag IS present
- name: Unit Test
if: type = pull_request OR branch = master OR tag IS present
- name: Sanitizers
if: type = pull_request OR branch = master OR tag IS present
- name: Integration Test
if: type = pull_request OR branch = master OR tag IS present
# Extra step to verify the release build for PRs/commits.
- name: Release Build
if: type = pull_request OR branch = master
# Actual Deploy step for tagged commits.
- name: Deploy
if: tag IS present
jobs:
include:
- stage: Check
script: scripts/travis/check-format
env:
- CHECK=format
- script: scripts/travis/lint
env:
- CHECK=lint
- stage: Unit Test
script: scripts/travis/unit-test
env:
- SANITIZER=none
- script: scripts/travis/unit-test
env:
- SANITIZER=asan
- script: scripts/travis/unit-test
env:
- SANITIZER=msan
- stage: Integration Test
script: scripts/run-integration
# Run using latest
env:
- MPD_VERSION=latest
- LIBMPDCLIENT_VERSION=latest
- script: scripts/run-integration
# Based on Ubuntu 16.04 LTS (xenial)
env:
- MPD_VERSION=0.19.12
- LIBMPDCLIENT_VERSION=2.9
- script: scripts/run-integration
# Based on Ubuntu 18.04 LTS (bionic)
env:
- MPD_VERSION=0.20.18
- LIBMPDCLIENT_VERSION=2.11
- script: scripts/run-integration
# Based on Ubuntu 19.04 (disco)
env:
# Actual version is 0.21.4, but that does not compile with gcc-9,
# so we bump a minor patch.
- MPD_VERSION=0.21.8
- LIBMPDCLIENT_VERSION=2.16
- stage: Release Build
script: scripts/travis/release
# Identical to the "Release Build" phase, but also has a deploy step.
- stage: Deploy
script: scripts/travis/release
deploy:
provider: releases
file: release/ashuffle.*
token: $GITHUB_TOKEN
draft: true
# Use Travis-CI dplv2
edge: true
on:
tags: true