forked from submariner-io/submariner-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 992 Bytes
/
.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
dist: xenial
language: go
branches:
only:
- master
- /^v\d+\.\d+\.\d+.*$/
- /^release-\d+.\d+.*$/
git:
depth: false
jobs:
include:
- env: CMD="make ci"
- env: CMD="make e2e"
DEPLOY_ARGS="--deploytool_broker_args '--service-discovery'"
RELEASE=true
- env: CMD="make e2e"
CLUSTERS_ARGS="--globalnet"
DEPLOY_ARGS="${CLUSTERS_ARGS} --deploytool_broker_args '--service-discovery'"
install:
- sudo apt-get install moreutils # make ts available
services:
- docker
script:
- set -o pipefail;
$CMD 2>&1 | ts '[%H:%M:%.S]' -s
after_success:
- echo "Testing cleaning up clusters";
set -o pipefail;
make cleanup 2>&1 | ts '[%H:%M:%.S]' -s
deploy:
- provider: script
script: bash scripts/release
on:
branch: master
condition: $RELEASE = true
- provider: script
script: bash scripts/release $TRAVIS_TAG
skip_cleanup: true
on:
tags: true
condition: $RELEASE = true