forked from submariner-io/shipyard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (47 loc) · 1.22 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
dist: xenial
language: go
branches:
only:
- master
git:
depth: false
jobs:
include:
- env: CMD="make validate"
- env: CMD="make deploy"
CLUSTERS_ARGS="--globalnet"
DEPLOY_ARGS="${CLUSTERS_ARGS} --deploytool helm"
- env: CMD="make deploy"
DEPLOY_ARGS="--cable_driver wireguard"
- env: CMD="make deploy"
RELEASE=true
install:
- sudo add-apt-repository -y ppa:wireguard/wireguard # add WireGuard support
- sudo apt-get update
- sudo apt-get install linux-headers-`uname -r` wireguard -y
- sudo modprobe wireguard
services:
- docker
addons:
apt:
packages:
- curl
- moreutils # make ts available
script:
- set -o pipefail;
$CMD 2>&1 | ts '[%H:%M:%.S]' -s
after_success:
- echo "Testing clean up";
set -o pipefail;
make cleanup 2>&1 | ts '[%H:%M:%.S]' -s
deploy:
- provider: script
script: make dapper-image dapper_image_flags="--nocache" release RELEASE_ARGS="shipyard-dapper-base"
on:
branch: master
condition: $RELEASE = true
- provider: script
script: make dapper-image dapper_image_flags="--nocache" release RELEASE_ARGS="--tag $TRAVIS_TAG shipyard-dapper-base"
on:
tags: true
condition: $RELEASE = true