forked from nuclio/nuclio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (54 loc) · 2.16 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
sudo: required
services:
- docker
addons:
apt:
packages:
- docker-ce
language: go
go_import_path: github.com/nuclio/nuclio
go: 1.x
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
- 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_TAG="unstable";
fi
- if [ "$TRAVIS_TAG" != "" ]; then
export NUCLIO_TAG="$TRAVIS_TAG";
fi
- echo $TRAVIS_PULL_REQUEST
- echo $TRAVIS_BRANCH
- echo $NUCLIO_TAG
- if [ -n "$NUCLIO_TAG" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
make docker-images push-docker-images &&
if [ "$NUCLIO_TAG" != "unstable" ]; then
docker tag "nuclio/playground:$NUCLIO_TAG-amd64" nuclio/playground:stable-amd64 &&
docker push nuclio/playground: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_TAG-linux-amd64
- $GOPATH/bin/nuctl-$NUCLIO_TAG-darwin-amd64
- $GOPATH/bin/nuctl-$NUCLIO_TAG-windows-amd64
skip_cleanup: true
on:
tags: true