forked from sociomantic-tsunami/dmqnode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (69 loc) · 2.33 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
# We will use docker to set up out environment, so don't use any particular
# language in Travis itself
language: generic
# Enable docker
sudo: required
services:
- docker
# Disable automatic submodule fetching (it's done recursively)
git:
submodules: false
# Global environment variables
env:
global:
- DIST=xenial
- COV=1
# Default beaver image names. May be overriden in specific stages
- BEAVER_DOCKER_IMG=builder
- BEAVER_DOCKER_CONTEXT=docker/builder
# Make sure beaver is in the PATH
- PATH="$(git config -f .gitmodules submodule.beaver.path)/bin:$PATH"
# Do a shallow submodule fetch
before_install: git submodule update --init
# Basic config is inherited from the global scope
jobs:
templates:
- &test-matrix
stage: Test
after_success: beaver dlang codecov
script:
- set -e # Do not continue on failure
- beaver dlang install
- beaver dlang make
- &package-matrix
stage: Build and upload packages
if: tag IS present
script:
- set -e # Do not continue on failure
- beaver dlang install
- beaver dlang make
- beaver dlang make pkg
- beaver bintray upload -d sociomantic-tsunami/nodes/dmqnode build/production/pkg/*.deb
include:
# Test matrix
- <<: *test-matrix
env: DMD=1.082.* F=production
- <<: *test-matrix
env: DMD=1.082.* F=devel
- <<: *test-matrix
env: DMD=2.071.2.s* F=production
- <<: *test-matrix
env: DMD=2.071.2.s* F=devel
- <<: *test-matrix
env: DMD=2.078.* F=production
- <<: *test-matrix
env: DMD=2.078.* F=devel
# Test deployment docker image generation
- stage: Test
script:
- docker build --build-arg DMD=2.071.2.s* --build-arg DIST=xenial
-t dmqnode .
# Extra sanity checks
- stage: Closure allocation check
env: DMD=2.071.2.s* DIST=xenial F=devel
script: beaver dlang install && ci/closures.sh
# Package matrix
- <<: *package-matrix
env: DMD=1.082.* F=production COV=0
- <<: *package-matrix
env: DMD=2.071.2.s* F=production COV=0