forked from libopenstorage/stork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.05 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
sudo: required
dist: xenial
language: go
go:
- 1.21.4
before_install:
- sudo apt-get update -yq || true
- sudo apt-get install go-md2man -y
- sudo apt-get install -y awscli
cache:
directories:
- $HOME/.cache/go-build
script:
- |
if [ "${TRAVIS_BRANCH}" == "master" ]; then
export DOCKER_HUB_STORK_TAG=master
export DOCKER_HUB_STORK_TEST_TAG=latest
export DOCKER_HUB_CMD_EXECUTOR_TAG=master
else
export DOCKER_HUB_STORK_TAG=`git rev-parse --short HEAD`
export DOCKER_HUB_STORK_TEST_TAG=`git rev-parse --short HEAD`
export DOCKER_HUB_CMD_EXECUTOR_TAG=`git rev-parse --short HEAD`
fi
travis_wait 45 make -j 2 && make test && make container && make integration-test && make integration-test-container &&
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}";
make deploy;
make integration-test-deploy;
fi
notifications:
email:
on_success: always
on_failure: always
after_success:
- bash <(curl -s https://codecov.io/bash)