This repository has been archived by the owner on Jan 7, 2024. It is now read-only.
forked from ivanilves/lstags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (41 loc) · 1.38 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
notifications:
email: false
language: go
go: "1.10"
env:
global:
- MAKEFLAGS="-j"
before_install:
- sudo ln -nfs /bin/bash /bin/sh
- make prepare
install:
- make dep
before_script:
- sudo cp -v ci_docker_daemon.json /etc/docker/daemon.json
- sudo killall -v dockerd && sudo rm -f /var/run/docker.pid && sudo dockerd 2>&1 | logger -t dockerd &
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}; fi
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} registry.hub.docker.com; fi
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then cp ~/.docker/config.json docker.json; else echo '{}' > docker.json; fi
- sudo docker info
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then git remote set-url --push origin https://${GITHUB_TOKEN}@github.com/ivanilves/lstags.git; fi
script:
- make build
- make lint
- make vet
- if [[ "${TRAVIS_PULL_REQUEST}" != "false" ]]; then make semantic RANGE=$(scripts/travis_range.sh); fi
- make coverage
- make blackbox-integration-test
- make docker-image DOCKER_TAG=release
after_script:
- sudo killall -v dockerd
before_deploy:
- make release
deploy:
provider: script
script: make deploy GITHUB_TOKEN=${GITHUB_TOKEN}
skip_cleanup: true
on:
branch: master
branches:
only:
- master