-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
84 lines (70 loc) · 2.1 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: go
go:
- 1.9.2
services:
- docker
sudo: required
before_install:
# - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# - sudo apt-get update
# - sudo apt-get -y install docker-ce
- echo
# cache:
# directories:
# - ${TRAVIS_BUILD_DIR}/vendor/github.com
# - ${TRAVIS_BUILD_DIR}/vendor/golang.org
# - ${TRAVIS_BUILD_DIR}/vendor/gopkg.in
script:
# - echo
- sudo make || exit 1
# - sudo make integration_tests || exit 1
# - sudo make acceptance_tests || exit 1
# - sudo env BATS_TESTFILE=01-integration.bats make suite_tests || exit 1
# - sudo env BATS_TESTFILE=02-acceptance.bats make suite_tests || exit 1
- sudo env SLEEP_TIME=10 ./scripts/basht.sh --test-dir tests/integration-tests
- sudo env SLEEP_TIME=10 ./scripts/basht.sh --test-dir tests/acceptance-tests
stages:
# - name: cache
# if: branch = development
- name: build
if: branch = development
- name: release
if: branch = master
matrix:
include:
# - stage: cache
# if: type IN (pull_request)
# script:
# - go get -v github.com/kardianos/govendor
# - go install github.com/kardianos/govendor
# - govendor sync +external
- stage: build
if: type IN (pull_request)
env: CLIENT_VERSION=1
- env: CLIENT_VERSION=2
if: type IN (pull_request)
- env: CLIENT_VERSION=5
if: type IN (pull_request)
- env: CLIENT_VERSION=6
if: type IN (pull_request)
- stage: release
# env: MAJOR_RELEASE=true
# it would be nice to map github labels instead
# env: RELEASE_TAG=0.3.0
if: type IN (push)
script:
- ./scripts/git-release.sh
deploy:
provider: releases
api_key: $GITHUB_TOKEN
on:
branch: master
after_install:
- docker plugin ls
# BUG: docker-ce version 17.09.0~ce-0~debian
# it overloads docker-plugin by sending lots of empty lines
# addons:
# apt:
# packages:
# - docker-ce=17.05.0~ce-0~ubuntu-trusty