87 Commits
master ... osx

Author SHA1 Message Date
Alan Shreve
6179d987a3 correctly update version 2013-11-22 01:02:59 +01:00
Alan Shreve
8441611435 use rc5 since it's not released yet 2013-11-22 00:45:19 +01:00
Alan Shreve
91929f9b32 switch to go 1.2 2013-11-21 23:49:21 +01:00
Alan Shreve
00f9c12676 Merge tag '1.6' into osx 2013-11-21 18:02:39 +01:00
Alan Shreve
0ffa1e7c3f Merge branch 'master' into osx 2013-09-27 21:26:18 +02:00
Alan Shreve
889710ff46 Merge branch 'master' into osx 2013-09-27 21:25:12 +02:00
Alan Shreve
e35cbde848 add env variable fix so that bazaar works 2013-09-22 17:59:36 +02:00
Alan Shreve
4ee81f4ad5 install bazaar for goyaml dep 2013-09-22 17:50:36 +02:00
Alan Shreve
f7f5ec5f2c Merge branch 'master' into osx 2013-09-22 17:40:23 +02:00
Alan Shreve
60e02048c3 Merge branch 'master' into osx 2013-09-06 22:59:22 +03:00
Alan Shreve
7bb4a9f9bb Merge branch 'master' into osx 2013-09-04 18:43:59 +03:00
Alan Shreve
339a5e012a Merge branch 'master' into osx 2013-08-17 21:54:55 +02:00
Alan Shreve
c99b002e55 Merge branch 'master' into osx 2013-08-17 12:19:58 +02:00
Alan Shreve
d31a78b5eb Merge branch 'master' into osx 2013-08-17 12:10:38 +02:00
Alan Shreve
073680c2ab Merge branch 'master' into osx 2013-08-17 11:18:21 +02:00
Alan Shreve
58aca382e6 ask for older backwards compat 2013-08-15 23:57:48 +02:00
Alan Shreve
00839a1773 add cflags env vars 2013-08-15 23:09:01 +02:00
Alan Shreve
9118564ccb Merge branch 'master' into osx 2013-08-15 22:48:02 +02:00
Alan Shreve
3fa4eda696 bump go version 2013-08-15 22:47:46 +02:00
Alan Shreve
59df7adc7c show build process 2013-08-15 22:35:03 +02:00
Alan Shreve
c468241bab determine platform from env vars in upload script 2013-08-10 21:05:43 +02:00
Alan Shreve
81d889a38a find ngrok in the right place since it's not cross-compiling anymore 2013-08-10 20:54:56 +02:00
Alan Shreve
906a03d213 remove verbose build option 2013-08-10 20:53:26 +02:00
Alan Shreve
75d9d4b33b build all osx apps in 64bit mode 2013-08-10 20:47:33 +02:00
Alan Shreve
5519ec2ea9 try to tell gcc our arch 2013-08-10 20:28:38 +02:00
Alan Shreve
1c6f9c318a run ngrok 2013-08-10 20:11:45 +02:00
Alan Shreve
4950f83489 show the build process 2013-08-10 19:59:14 +02:00
Alan Shreve
b6d69c22b8 Revert "try building without autoupdate"
This reverts commit ea16c11136.
2013-08-10 19:58:25 +02:00
Alan Shreve
ea16c11136 try building without autoupdate 2013-08-10 19:38:04 +02:00
Alan Shreve
48b3ec303c Merge branch 'master' into osx 2013-07-30 16:08:49 +02:00
Alan Shreve
6416769ecb merge in branch master 2013-07-30 15:27:57 +02:00
Alan Shreve
171961979e remove debugging output 2013-07-30 01:54:20 +02:00
Alan Shreve
46d43c835f switch to 10.6 since everyone else seems to do that 2013-07-30 01:29:46 +02:00
Alan Shreve
659b5613e3 add -x to check commandline flag is properly added 2013-07-30 00:52:27 +02:00
Alan Shreve
b88adb8135 add osx commandline option to support older platforms 2013-07-30 00:45:54 +02:00
Alan Shreve
b0583525f5 remove unnecessary cross-compilation and build output 2013-07-28 23:47:09 +02:00
Alan Shreve
916f776167 fix patch command 2013-07-28 22:38:39 +02:00
Alan Shreve
57d998a754 patch go to allow CGo usage 2013-07-28 22:30:30 +02:00
Alan Shreve
6ed01b34d1 fix paths 2013-07-28 21:28:20 +02:00
Alan Shreve
962c9044d7 make sure to specify release when getting deps 2013-07-28 21:11:49 +02:00
Alan Shreve
b55e652087 poke travis 2013-07-28 21:04:58 +02:00
Alan Shreve
75235c6b90 attempt 32-bit cross-compile 2013-07-28 20:31:40 +02:00
Alan Shreve
299fa2cb68 add -x to observe commands for cross compilation 2013-07-28 17:44:45 +02:00
Alan Shreve
9e109056d6 revert to brew-based install of Go 2013-07-28 10:32:59 +02:00
Alan Shreve
9562cd308d use all.bash instead 2013-07-28 10:18:00 +02:00
Alan Shreve
9aa579f775 debug build 2013-07-28 10:15:30 +02:00
Alan Shreve
e58c47cea0 use gopath instead 2013-07-28 10:01:47 +02:00
Alan Shreve
cb13d1ae89 make sure to install platform default tools 2013-07-28 09:51:43 +02:00
Alan Shreve
a54e229e19 add go binary to path 2013-07-28 02:38:58 +02:00
Alan Shreve
5e2fb9dcf8 define goroot 2013-07-28 02:35:01 +02:00
Alan Shreve
8b35c11e57 one more fix for osx travis build 2013-07-28 02:27:48 +02:00
Alan Shreve
9040db2589 fix go download link 2013-07-28 02:08:28 +02:00
Alan Shreve
cedfc93192 faster osx build 2013-07-28 01:59:52 +02:00
Alan Shreve
8fd2e3cb79 Merge branch 'master' into osx 2013-07-28 00:45:05 +02:00
Alan Shreve
c772eb405a working osx compilation of ngrok 2013-07-18 03:53:46 +01:00
Alan Shreve
ef59bd2df0 see if we can use easy_install 2013-07-18 03:51:17 +01:00
Alan Shreve
9cb216935f cross compile the brew way 2013-07-18 03:36:52 +01:00
Alan Shreve
b863457e52 fix directory 2013-07-18 03:12:21 +01:00
Alan Shreve
1685ccf1b5 tweaks to figure osx build 2013-07-18 03:04:11 +01:00
Alan Shreve
c2175b1c70 first attempt at osx build 2013-07-18 02:56:35 +01:00
Alan Shreve
167cf25dae remove debugging prints 2013-07-18 02:46:32 +01:00
Alan Shreve
9f8bd8adc3 make sure we run the verison command in native platform 2013-07-18 02:35:52 +01:00
Alan Shreve
4db6e7143d fix how we pass in environment variables 2013-07-18 02:29:08 +01:00
Alan Shreve
65411b54bd more travis debugging 2013-07-18 02:05:55 +01:00
Alan Shreve
213eb595a6 touch to get travis to build 2013-07-18 01:58:47 +01:00
Alan Shreve
160bf79cb5 pass env variables to travis 2013-07-18 01:45:00 +01:00
Alan Shreve
95ffd273f2 try to debug travis build problems 2013-07-18 01:09:47 +01:00
Alan Shreve
063389d36b new travis upload strategy 2013-07-18 00:56:32 +01:00
Alan Shreve
514c16c91f fix host target 2013-07-17 01:13:09 +01:00
Alan Shreve
f6a3742a74 set env vars separately 2013-07-17 00:59:10 +01:00
Alan Shreve
d09037b0ff run after_success explicitly 2013-07-17 00:50:19 +01:00
Alan Shreve
0c970983e2 one more attempt at fixing after_success 2013-07-17 00:43:32 +01:00
Alan Shreve
a72e0fd7c7 fix after_success 2013-07-17 00:27:56 +01:00
Alan Shreve
41865cb20d fix after_success 2013-07-17 00:21:47 +01:00
Alan Shreve
66a919e63b always install go-bindata for the current architecture 2013-07-17 00:07:51 +01:00
Alan Shreve
569013e691 fix for bootstrap 2013-07-16 23:49:16 +01:00
Alan Shreve
bf6ce69203 bootstrap for cross-compile 2013-07-16 23:46:35 +01:00
Alan Shreve
030b436d62 find make.bash 2013-07-16 23:37:44 +01:00
Alan Shreve
5b27861135 add cross-compilation targets 2013-07-16 23:30:03 +01:00
Alan Shreve
aa3fa9a08b continue trying to get travis to build 2013-07-16 23:26:19 +01:00
Alan Shreve
53a940ec18 try to get travis to build again 2013-07-16 23:16:42 +01:00
Alan Shreve
e5840c1e5d fix travis branch specifier 2013-07-16 23:10:11 +01:00
Alan Shreve
f1766e5884 test travis configuration 2013-07-16 22:57:38 +01:00
Alan Shreve
404e70c1eb add travis upload step 2013-07-16 22:53:39 +01:00
Alan Shreve
421b365483 add cross-compilation for windows and linux/arm 2013-07-16 20:50:49 +01:00
Alan Shreve
c072be702c make sure go-bindata tool is installed 2013-07-16 20:34:01 +01:00
Alan Shreve
0f09e5feae add travis integration 2013-07-16 20:28:33 +01:00
4 changed files with 55 additions and 4 deletions

View File

@@ -1,4 +1,26 @@
script: make release-all
script:
- make release-all
install: true
go:
- 1.1
before_install:
- export PYTHONPATH=/usr/local/lib/python2.7/site-packages
- brew install bazaar
- export CGO_CFLAGS="-mmacosx-version-min=10.4"
- export CGO_LDFLAGS="-mmacosx-version-min=10.4"
- wget https://go.googlecode.com/files/go1.2rc5.src.tar.gz
- tar xzf go1.2rc5.src.tar.gz
- pushd go/src
- ./make.bash
- popd
- export GOPATH=./go
- export PATH=$PATH:$GOPATH/bin
after_success:
- sudo easy_install boto
- NGROK="bin/ngrok" NGROKD="bin/ngrokd" VERSION=$(GOOS="" GOARCH="" GOPATH=$(pwd) go run build/version.go) python build/travis.py
env:
global:
- secure: Fd5zHi58jx8lsPDv4tkRFzXSY0KnPJZuZ+LvnRcpX4+3xJsuZU6moOfrOcGqDOm7/SqZRVZRKZapE772+8sXNKPmwSXHRsZEsUgqxdehFzlVP4PQN5efOdI/quO2ibwVpZ6Idze5pelZburALd7/VbfHCTB/0P0WDMNvfHuFPQg=
- secure: Yg+y996B4S7zHXO8j6JrRbgMf6yilHGWv6I+7oZf02d8IHYtAb6A9DveX/q+v24O8Q9WzXRU4ZIaG5nJksVwb19qcy4vpaUbvx00COi8tg0l9hdKIotrzAs+i8q5h0xUifE1iuqYJw39vYU/9vC/727GTvOfRpBCr+edcpc9uy0=
- secure: CMF8ZfcoZK8AhFrmo6ljwP4ulYOSI9Pftp02rfNcM7LYPzU5HxFmcR7M4+3Qt0HAWxYrReozNQZYrV0s5jqIO0H4LZeHxgi7EHTam1BelhmHxL6VBMoR1mTi53bErWNhpoc0qyCnWMpnzNMObwtBVm9vjacm4NJMWqQjte/0Kdw=
matrix:
- GOOS=darwin GOARCH=amd64
language: objective-c

View File

@@ -13,7 +13,7 @@ fmt:
go fmt ngrok/...
client: deps
go install -tags '$(BUILDTAGS)' ngrok/main/ngrok
go install -x -tags '$(BUILDTAGS)' ngrok/main/ngrok
client-assets:
go get github.com/inconshreveable/go-bindata

19
build/travis.py Executable file
View File

@@ -0,0 +1,19 @@
#! /usr/bin/env python
import os, os.path, boto.s3.connection
access_key = os.getenv("AWS_ACCESS_KEY")
secret_key = os.getenv("AWS_SECRET_KEY")
bucket = os.getenv("BUCKET")
version = os.getenv("VERSION")
s3 = boto.s3.connection.S3Connection(access_key, secret_key)
bucket = s3.get_bucket(bucket)
for envpath in ["NGROK", "NGROKD"]:
file_path = os.getenv(envpath)
dir_path, name = os.path.split(file_path)
platform = "%s_%s" % (os.getenv("GOOS"), os.getenv("GOARCH"))
key_name = "%s/%s/%s" % (platform, version, name)
key = bucket.new_key(key_name)
key.set_contents_from_filename(file_path)

10
build/version.go Normal file
View File

@@ -0,0 +1,10 @@
package main
import (
"fmt"
"ngrok/version"
)
func main() {
fmt.Print(version.MajorMinor())
}