forked from cretz/tor-static
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (43 loc) · 1.12 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
language: go
go: 1.11.x
sudo: false
stages:
- name: deploy
if: branch = master
matrix:
include:
- name: linux-amd64
os: linux
dist: xenial
env: CGO_ENABLED=1 GOOS=linux GOARCH=amd64
install:
- sudo apt-get install build-essential
- sudo apt-get install libtool
- sudo apt-get install autopoint
- name: darwin-amd64
os: osx
env: CGO_ENABLED=1 GOOS=darwin GOARCH=amd64
install:
- brew install libtool
- brew install gettext
before_script:
- go run build.go -verbose build-all
script:
- go get -u github.com/cretz/bine/tor
- go test -v build_test.go -tor.verbose
after_script:
- go run build.go package-libs
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv libs.tar.gz tor-static-linux-amd64.tar.gz; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mv libs.tar.gz tor-static-darwin-amd64.tar.gz; fi
deploy:
provider: releases
api_key: "${GITHUB_PAT}"
file:
- tor-static-linux-amd64.tar.gz
- tor-static-darwin-amd64.tar.gz
skip_cleanup: true
draft: true
on:
repo: cretz/tor-static
tags: true