forked from cfengine/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (67 loc) · 2.17 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
language: c
addons:
artifacts:
paths:
- artifacts/
env:
global:
- CI_NODE_TOTAL=6
# Quickest to build, fast performing, debugable builds.
- CFLAGS="-g1 -O1"
# upload log files, tarballs etc artifacts from the build.
- ARTIFACTS_BUCKET=cfengine-travis-artifacts
# 2 cores according to: https://docs.travis-ci.com/user/ci-environment/
- MAKEFLAGS=-j3
# Parallel jobs listed here; fastest jobs should come first to give
# feedback ASAP. For more info read this:
# https://docs.travis-ci.com/user/multi-os/
matrix:
fast_finish: true # Build will succeed once all linux jobs succeed
include:
- os: linux
sudo: required
env: JOB_TYPE=compile_and_unit_test
- os: linux
sudo: required
env: JOB_TYPE=compile_and_unit_test COVERAGE=no
compiler: clang
- os: linux
sudo: required
env: JOB_TYPE=acceptance_tests_common
# The unsafe acceptance tests don't work with SIMFS which is the default
# filesystem in Travis; so change OS to Trusty, which uses ext4.
- os: linux
sudo: required
env: JOB_TYPE=acceptance_tests_unsafe_serial_network_etc
- os: linux
sudo: required
env: JOB_TYPE=serverd_multi_versions COVERAGE=no
- os: osx
env: JOB_TYPE=compile_only
sudo: false
allow_failures:
- os: osx
env: JOB_TYPE=compile_only
sudo: false
before_install:
- chmod ug+x ./travis-scripts/*
- ./travis-scripts/before_install.sh
script: ./travis-scripts/script.sh
after_success: ./travis-scripts/after_success.sh
before_deploy: ./travis-scripts/before_deploy.sh
# We deploy when setting tags only, which basically never happens
# on master branch. Cherry-pick this part and alter it properly into
# the release branches.
deploy:
skip_cleanup: true
provider: releases
# Remember to set it as private variable in Travis-CI settings
api_key: $GITHUB_RELEASE_TOKEN
# Does not work, I get the error that "true" is not a boolean
prerelease: $IS_PRERELEASE
file: "$DIST_TARBALL"
on:
tags: true
# Avoid upload from all the multiple parallel matrix jobs
condition: "$CF_VERSION = latest"
after_script: ./travis-scripts/after_script.sh