forked from nuclio/nuclio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 2.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
53
54
55
56
57
58
59
60
61
62
63
64
65
sudo: required
services:
- docker
addons:
apt:
packages:
- docker-ce
language: go
go_import_path: github.com/nuclio/nuclio
go: "1.12"
script:
- go get github.com/v3io/v3io-go-http
- go get github.com/nuclio/logger
- go get github.com/nuclio/nuclio-sdk-go
- go get github.com/nuclio/amqp
- go get github.com/v3io/scaler-types
- cd $GOPATH/src/github.com/v3io/scaler-types
- git checkout v1.3.0
- cd $GOPATH/src/github.com/nuclio/nuclio
- make lint test-short
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
make build test;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "development" ]; then
export NUCLIO_LABEL="unstable";
fi
- if [ "$TRAVIS_TAG" != "" ]; then
export NUCLIO_LABEL="$TRAVIS_TAG";
fi
- echo $TRAVIS_PULL_REQUEST
- echo $TRAVIS_BRANCH
- echo $NUCLIO_LABEL
- if [ -n "$NUCLIO_LABEL" ]; then
echo "$DOCKER_PASSWORD" | docker login -u="$DOCKER_USERNAME" --password-stdin quay.io &&
make docker-images push-docker-images &&
if [ "$NUCLIO_LABEL" != "unstable" ]; then
docker tag "quay.io/nuclio/dashboard:$NUCLIO_LABEL-amd64" quay.io/nuclio/dashboard:stable-amd64 &&
docker push quay.io/nuclio/dashboard:stable-amd64;
fi
fi
- echo "Done."
before_deploy:
- NUCLIO_OS=linux NUCLIO_ARCH=amd64 make tools
- NUCLIO_OS=darwin NUCLIO_ARCH=amd64 make tools
- NUCLIO_OS=windows NUCLIO_ARCH=amd64 make tools
deploy:
provider: releases
api_key:
secure: XYb8aOndiae7AoLyZU2e4s4GKKyoJjjW8tA+gG0HHD6AhqbaaSx6IofwNbQqOhM0iGOTWeeG3SaW34MPRcjV3FX0fYO8lW2GAynXT6Td5uhJmPtmk/msrfdLlCVYhQ42DoWjvtWwaejJRZCYHNlhAwH6c/peSO7KqN0QaRABfO4CK6Npvt9JMo+hCfxnUmaVBzkbtfXIrBlxkXxVOGn/geUzf+2qpnMw85WMIN8RIXedNBe0UBkBasPJA5hKadckMKDCaIbiQ8KsOF2HK7IGwg/goTMfshuOZn/f8aCC+D5lyCQD3bkuHJqrj+HYCVHalAeESXJGmSHr/xmV+XQ9RoxdSUaO2TBU4r+WPPM1JsNNAvQe4zxEaVXOu41bRbZnccxwCHhPcKwT+KD7IniJMUdRkTadGPx+yZoMGwxtGK6elDyr3yzzYRfjBIcfecaPVifny51bRxWpGwcaoWP0qew86vqMcCz9dQBZUvKA/+zdcKXZHvqbouh+Iv79z7BVaW7aTmcsIhn7miqH5qIOnfJUsZiBAAY5EX7FpXMtSx9cpna+vKsvtRtSnywLsLDiLAPLWE0muTDPDksDsmTT0AvHQENv0bd5U0qnTlaR2Q31Q2e8WY0y7DZrYgruNGTvVtwrrAv4KvBHjO0GJya4NvnZB37yMFTKJouZU/o8qm4=
file:
- $GOPATH/bin/nuctl-$NUCLIO_LABEL-linux-amd64
- $GOPATH/bin/nuctl-$NUCLIO_LABEL-darwin-amd64
- $GOPATH/bin/nuctl-$NUCLIO_LABEL-windows-amd64
skip_cleanup: true
on:
tags: true