This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
forked from LinuxCNC/linuxcnc
-
Notifications
You must be signed in to change notification settings - Fork 181
/
.travis.yml
103 lines (92 loc) · 2.63 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
# This Travis CI config calls scripts that use the following defaults,
# which can (and some should) be overridden in the Travis CI repo
# settings.
#
# Package build `build_docker` script:
# - IMAGE: dovetailautomata/mk-cross-builder
# Docker image to pull for build
# - MK_PACKAGE_VERBOSE: false
# Build verbosely with `make V=1`
# - JOBS: 2
# Make parallel jobs, `make -j2`
# - DEBIAN_SUITE: experimental
# Debian package suite
# - MAJOR_MINOR_VERSION: 0.1
# Override Machinekit package base version
# - PKGSOURCE: ${TRAVIS_REPO}
# Identifier added to package release suggesting package origin
# - TEST_ARGS: (empty)
# For CMD=test only; set as needed for debugging, e.g. `-v tests/hm2-idrom`
# - TEST_DEBUG: false
# For CMD=test only; set to `true` to send test debug output to stderr
#
# Package upload `build_upload_packagecloud` script:
# - PACKAGECLOUD_USER, PACKAGECLOUD_TOKEN, PACKAGECLOUD_REPO: no defaults
# Packagecloud.io user credentials and package repository
# - DEPLOY_BRANCH: master
# Git branch for which to deploy packages
sudo: required
notifications:
email:
on_success: never
on_failure: always
webhooks:
urls:
- $GITTER_IM_URL
on_success: change
on_failure: always
on_start: never
# Cache: In $HOME/.ccache; inserts /usr/lib/ccache into $PATH
# https://docs.travis-ci.com/user/caching/#ccache-cache
language: c
cache: ccache
services:
- docker
before_install:
- .travis/check_sftp.sh
env:
global:
- IMAGE=${IMAGE:-dovetailautomata/mk-cross-builder}
- MK_PACKAGE_VERBOSE=${MK_PACKAGE_VERBOSE:-false}
- JOBS=${JOBS:-2}
- TEST_DEBUG=false
- TEST_ARGS=
matrix:
# Tests
# - Reduce total build time by starting longest jobs first
- TAG=amd64_9 CMD=test
- TAG=amd64_8 CMD=test
# Packages
# - Stretch
- TAG=amd64_9 CMD=deb
- TAG=i386_9 CMD=deb
- TAG=armhf_9 CMD=deb
# - Jessie
- TAG=amd64_8 CMD=deb
- TAG=i386_8 CMD=deb
- TAG=armhf_8 CMD=deb
addons:
apt:
packages:
- lftp
- sshpass
before_install:
# Show environment for debugging purposes
- env
# Pull the Docker build image
- docker pull "${IMAGE}:${TAG}"
# Clear ccache stats
- ccache -z
# Install the packagecloud gem for pushing packages
- gem install package_cloud
script:
- scripts/build_docker -i $IMAGE -t $TAG -c $CMD
after_success:
- .travis/send_binaries.sh
# Upload packages to packagecloud.io
- test -z "PACKAGECLOUD_USER" || gem install package_cloud
- test -z "PACKAGECLOUD_USER" || scripts/build_packagecloud_upload
# Show ccache stats
- ccache -s
after_script:
- .travis/send_status.sh