forked from cfengine/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (70 loc) · 2.19 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: 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:
include:
- os: linux
sudo: required
env: JOB_TYPE=compile_and_unit_test
- 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: osx
env: JOB_TYPE=compile_only
sudo: false
# - os: osx
# sudo: required
# env: JOB_TYPE=acceptance_tests_common
# - os: osx
# sudo: required
# env: JOB_TYPE=acceptance_tests_unsafe_serial_network_etc
# allow_failures:
# - os: osx
# sudo: required
# env: JOB_TYPE=acceptance_tests_common
# - os: osx
# sudo: required
# env: JOB_TYPE=acceptance_tests_unsafe_serial_network_etc
before_install:
- chmod ug+x ./travis-scripts/*
- source ./travis-scripts/before_install.sh
script:
- source ./travis-scripts/script.sh
before_deploy:
- source ./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:
- source ./travis-scripts/after_script.sh