Merge branch 'ci'
This commit is contained in:
commit
5a7c78ce15
|
@ -12,24 +12,58 @@ jobs:
|
|||
# - run: echo $PROJECT_GO_PACKAGE
|
||||
- run: echo $CIRCLE_WORKING_DIRECTORY
|
||||
- run: echo $PWD
|
||||
- run: echo $GOPATH
|
||||
- run: echo 'export GOPATH=$HOME/go' >> $BASH_ENV
|
||||
- run: echo 'export PATH="$GOPATH/bin:$PATH"' >> $BASH_ENV
|
||||
- run: echo $GOPATH
|
||||
- run: which go
|
||||
- run: go version
|
||||
- run: cd /usr/local && sudo rm -r go && sudo mkdir go go1.4 && sudo chown `whoami` go go1.4 && git clone git://github.com/golang/go && cd go && git branch -f -t go1.4 origin/release-branch.go1.4 && cd .. && git clone --single-branch -b go1.4 go go1.4 && cd go1.4/src && ./make.bash && cd ../../go/src && GOROOT_BOOTSTRAP=/usr/local/go1.4 ./make.bash
|
||||
- run: |
|
||||
cd /usr/local
|
||||
sudo mkdir go.master
|
||||
sudo chown `whoami` go.master
|
||||
- restore_cache:
|
||||
key: go-root-
|
||||
- run: |
|
||||
cd /usr/local
|
||||
git clone git://github.com/golang/go go.master || true
|
||||
cd go.master
|
||||
git pull
|
||||
[[ -x bin/go && `git rev-parse HEAD` == `cat anacrolix.built` ]] && exit
|
||||
cd src
|
||||
./make.bash || exit
|
||||
git rev-parse HEAD > ../anacrolix.built
|
||||
- save_cache:
|
||||
paths: /usr/local/go.master
|
||||
key: go-root-{{ checksum "/usr/local/go.master/anacrolix.built" }}
|
||||
- run: echo 'export PATH="/usr/local/go.master/bin:$PATH"' >> $BASH_ENV
|
||||
- run: go version
|
||||
- checkout
|
||||
- run: sudo apt-get update
|
||||
- run: sudo apt install fuse pv
|
||||
# - run: go get -t -d -v -race $PROJECT_GO_PACKAGE/...
|
||||
- restore_cache:
|
||||
keys:
|
||||
- go-pkg-
|
||||
- restore_cache:
|
||||
keys:
|
||||
- go-cache-
|
||||
- run: go get -d ./...
|
||||
- run: go test -v -race ./... -count 2
|
||||
- run: go test -bench . ./...
|
||||
# - run: CGO_ENABLED=0 go get -t -d -v $PROJECT_GO_PACKAGE/...
|
||||
- run: set +e; CGO_ENABLED=0 go test -v ./...; true
|
||||
- run: go install golang.org/x/mobile/cmd/gomobile
|
||||
- run: gomobile init
|
||||
- run: gomobile build -target=android $PROJECT_GO_PACKAGE
|
||||
# - run: GO111MODULE=off go install github.com/anacrolix/godo
|
||||
- run: go install ./cmd/torrentfs
|
||||
- save_cache:
|
||||
key: go-pkg-{{ checksum "go.mod" }}
|
||||
paths:
|
||||
- ~/go/pkg
|
||||
- run: sudo modprobe fuse
|
||||
- run: fs/test.sh
|
||||
- save_cache:
|
||||
key: go-cache-{{ .Revision }}
|
||||
paths:
|
||||
- ~/.cache/go-build
|
||||
when: always
|
||||
|
|
2
go.mod
2
go.mod
|
@ -17,12 +17,14 @@ require (
|
|||
github.com/elgatito/upnp v0.0.0-20180711183757-2f244d205f9a
|
||||
github.com/fsnotify/fsnotify v1.4.7
|
||||
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
|
||||
github.com/gosuri/uilive v0.0.0-20170323041506-ac356e6e42cd
|
||||
github.com/gosuri/uiprogress v0.0.0-20170224063937-d0567a9d84a1
|
||||
github.com/ipfs/go-ipfs v0.4.18 // indirect
|
||||
github.com/jessevdk/go-flags v1.4.0
|
||||
github.com/mattn/go-sqlite3 v1.10.0
|
||||
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 // indirect
|
||||
github.com/pkg/errors v0.8.0
|
||||
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
|
||||
github.com/stretchr/testify v1.2.2
|
||||
github.com/willf/bitset v1.1.9 // indirect
|
||||
golang.org/x/net v0.0.0-20181220203305-927f97764cc3
|
||||
|
|
Loading…
Reference in New Issue