1
0
mirror of https://git.envs.net/envs/ifconfig synced 2024-11-26 06:33:46 +01:00

(*)use travis to cross build

This commit is contained in:
Fan Yang 2015-01-10 11:16:03 +08:00
parent c3f6401883
commit fa66dc9bda
2 changed files with 11 additions and 7 deletions

@ -1,8 +1,12 @@
language: go
go:
- 1.3
- 1.4
- tip
- 1.3
- 1.4
- tip
script:
- go get github.com/astaxie/beego
- go build .
- go build .
- pwd && cd $GOPATH/build && ./travis-build.sh
env:
global:
- GITHUB_REPO: 'missdeer/ifconfig'
- secure: XA0FWLFpgx3eDBZTaQBVDIUrUp7SBoHdECSaH+WujZo9iOMd3pRHBZTx9yfw/YDSvkFlf8CjrSRB9fec/uXono7+w7JYwi23aPqcWK9uqJiBgg6CeWx7aChQNvb0cxEtSupiBPpYOC63O0tDJl4tR3IsjHXPTJyBZm9eTF6QVMw=

@ -107,8 +107,8 @@ prebuilt_push() {
# check for GitHub access token
[ "${GH_TOKEN+set}" = set ] || \
skip "GitHub access token not available, not updating prebuilt branch."
[ "${#GH_TOKEN}" -eq 40 ] || \
abort "GitHub token invalid: found ${#GH_TOKEN} characters, expected 40."
#[ "${#GH_TOKEN}" -eq 40 ] || \
# abort "GitHub token invalid: found ${#GH_TOKEN} characters, expected 40."
cd "${TRAVIS_BUILD_DIR}/doc/html";
# setup credentials (hide in "set -x" mode)