-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
78 lines (67 loc) · 3.13 KB
/
.travis.yml
File metadata and controls
78 lines (67 loc) · 3.13 KB
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
language: go
env:
global:
- BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
- REF=$TRAVIS_COMMIT
- VERSION=$TRAVIS_TAG
- GO111MODULE=on
- DOCKER_USERNAME=simonbaeumer
- secure: HnL++znn1w4qKGSFiLK3CZAR0eZ0ds7burWeWX293GMOEMH3lMN8WoVNYUjprKEf2jdlGqRzrwN6KnOTg/rFLWM/Q+PFYqX6ArMVeYqw3KMuD7YF22KhWvduq1mdlTLmOq43fWCTp5xqcbRDmx9O88wcrz0cza98LQmUrzidJfDlzw7KYUrAjh6wJABm5kS1EKm0Nss47Hj2tbbo+Nb7Rwu8C+qdcvvwPk/W/5NyOtBmLub7lCzWDaYrVMFmQ6elZ80unNFoQ70hMiEI+buGvnW8JXDHoUKdbtQropMNbSTPn30sZf1PPUmTHosmx2+PQa+5IWDPjidpwqymTRt4Rghx8N41WNIt3B7ej93NO34Fz8gMjRXUoAeJGQwtz4cW6hJxBxol6iJAHw7XbqY20mIY/XEo98JChs5RE78aX2eOseOilLXutQAwLMmLxJtzcnuqHlrYG+wY/l/edKvpfeDyQ/50J+w8gGB3XfwNHpm7DxPezN5ifTtASSbkibVx7cdhNMwvs5S4EZK/gMyNUGSqoNRIa5K2+AlNtkKUWSN13DYwGphei063G7YoOMIGtQqs5lpVtgwgluaFWaht6E36Qy05qS9jbI7Oz4JU9uBl15RNckH5u1eFWUt+mCRn33SlLv8lizGdW9e18kMM6tAGtwDgfrTCyKL4ox2yhpc=
stages:
- test
- deploy
- release
go:
- 1.13.x
sudo: required
dist: trusty
services:
- docker
before_install:
- go get -u golang.org/x/lint/golint
- curl -L https://github.com/SimonBaeumer/commander/releases/download/v0.3.0/commander-linux-amd64 -o ~/bin/commander
- chmod +x ~/bin/commander
jobs:
include:
- name: Unit tests
script: make test
- name: Integration tests
script:
- make build
- cd integration && ./integration.sh
- name: Deploy docker latest image
stage: deploy
branches:
only:
- master
script:
- echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin
- VERSION=latest make docker-image
- VERSION=latest make docker-push
- stage: release
name: "Release binaries"
if: tag IS present
script: make release
deploy:
provider: releases
overwrite: true
api_key:
secure: amZy46LUflpI5nKCaqG05bAHAqLmcUXQkoTK450wp17a7wCrH54JVsQFsMfsEn2Cl41Pa1pZ7BBu1yAF/BjOg/M2tsnQT1f48sq5bPVfdnBwAjirGx0CIAtl9rV3oNH5G8kQJGDXJVV6tuElebJVgdJ5aq1+PHSzw0EaJdq27stvjtDSYq5eyQrKn7sa5C9gH92fuDS4zg10LR34MPSUUVPoC2qZl66Ft0zP5ym3Ilmes+mABj+cfjLt3X1z/+Kt0toqhE0eQnOYmu/B3r6Ph+9oKfUesFwkdpo+9xgNgQiEAYvTF79b6uhYNRPNxEyTINx5DJP6s8S3B9AvqgWu20Ly1pMo9q8XZZYrQgjzGCpMKmAZAi/6XfDPqgmDFJmPye23dnK1PtASdHWFKideDPopozovsVcBwWqSkZS+yV6UzTLJPo+XTh3z+h7SkbKoNbSeFQn0EObXc9nqhik5HbwCkqxkrlIGDl2qKtbPO4chWB8c0usXY/X2C5wydKZkoueH/Zu+79HWs4sO4czJ9SZC2hyU9cVcnDDVn3/N/ztrLK649puJlIc57zGCJ7iAEOnvf4ciiJh4/C+HaiePpkt2kyxYe0qc5XF42t39JnI29y/WpPq98I8kvpS545k2kUtQZSNGVPR/yrRI8WeBhSPtAuJcNEm+uGyDlkh+t+M=
file:
- release/monorepo-operator-linux-amd64
- release/monorepo-operator-linux-arm
- release/monorepo-operator-linux-386
- release/monorepo-operator-mac-amd64
- release/monorepo-operator-windows-amd64.exe
- release/monorepo-operator-windows-386.exe
skip_cleanup: true
on:
repo: SimonBaeumer/monorepo-operator
tags: true
- stage: release
name: "Release docker image"
if: tag IS present
script:
- echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin
- make docker-image
- make docker-push