forked from submariner-io/submariner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (31 loc) · 858 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
dist: xenial
language: go
branches:
only:
- master
- overlapping-cidrs
git:
depth: false
install:
- sudo apt-get install moreutils # make ts available
services:
- docker
before_script:
- CHANGED_FILES_PR=$(git diff --name-only HEAD $(git merge-base HEAD $TRAVIS_BRANCH))
script:
- make ci e2e status=keep deploytool=operator 2>&1 | ts '[%H:%M:%.S]' -s
after_success:
- if [[ "${CHANGED_FILES_PR[@]}" =~ "scripts/kind-e2e/e2e.sh" ]]; then
echo "scripts/kind-e2e/e2e.sh was modified, testing recurring run on already deployed infrastructure.";
make e2e status=keep deploytool=operator 2>&1 | ts '[%H:%M:%.S]' -s ;
fi
deploy:
- provider: script
script: bash scripts/release
on:
branch: master
- provider: script
script: bash scripts/release $TRAVIS_TAG
skip_cleanup: true
on:
tags: true