-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
38 lines (38 loc) · 1.75 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
sudo: required
language: go
go:
- 1.11
before_install:
- sudo apt-get install zip
# Download the binary to bin folder in $GOPATH
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
# Make the binary executable
#- chmod +x $GOPATH/bin/dep
#- go get -d github.com/stretchr/testify/assert
install:
- export GO111MODULE=on
script:
- go test -v ./...
- mkdir linux_amd64
- mkdir windows_amd64
- go build -o ./linux_amd64/blobporter github.com/Azure/blobporter
- export GOOS=windows
- go build -o ./windows_amd64/BlobPorter.exe github.com/Azure/blobporter
- cp LICENSE ./linux_amd64/LICENSE
- cp LICENSE ./windows_amd64/LICENSE
- md5sum ./linux_amd64/blobporter > ./linux_amd64/blobporter.md5
- md5sum ./windows_amd64/BlobPorter.exe > ./windows_amd64/BlobPorter.exe.md5
- tar cvzf bp_linux.tar.gz linux_amd64
- zip bp_windows.zip ./windows_amd64/*
- bash inttest.sh inttest
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: OluucIYf78l/1cMQq5MvJxGdwXS1tSxingFi9mS9onI7RPK3qXdUWY1AHxd3xlJo4vjAlPwSA4NREm8k0zcq3tTtJOVsbREoZpa7Dhbn8zkJlVuurDK15HAlU1m0F2zo1LvlNGjulQj+MF/Tk676kVtRZqd8KQ3ivTk7IkL5Q5/uMnp8/gYtHWfJZiVdVznqf+enel4ghH1zDc1a6W/SkuTTfP2lmkzJrit4H1YIzOcW+DDOAuAqmgOJPFZdfQs3kKwCEzcXVKjUMe+iiyO0yNfvtmT1QqyI48VC65y/3sPXKWYBA40O0VZ8vAQtwV2IDdYwSk1X5dqgU5U7vnrMYogyF/x5PFkBdbfALJFIZQZf07rPeVjuX6l5uskf4i3TN+bHyRElvnYshLlN9QTQkoVyHHLtoH2BCbnZhPL81S9nfIbQgp5ldIdizQgSTiClhRDdOOoLErMT4yY0NU+EO4edjKgpLGC8+OG0p6wXoNGXhPfuaTY/4cYEfnO5EW3kJk2T0iMaxhcOpPaz6xcgK6h99pZfzzdUYkyhmKld4Fb3bxULvRrHo13CBxnOlUDid4jn5Ckl1HtsmtdoY4qfUQnJumOj8C92/Zub1J0smVV05yuj8r1OiGk75Q4nTxrkSL19dsrZnd6ZitKrthOr1F7WBb8N913g8lXqgn7APAw=
file:
- bp_linux.tar.gz
- bp_windows.zip
on:
repo: Azure/blobporter
tags: true