2 Star 0 Fork 0

phox/srvisit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
nb-vaizmanai 提交于 2019-06-28 22:17 . reduce script for building
language: minimal
dist: xenial
before_install:
- sudo apt-get install -y build-essential git python-pip sqlite3
- sudo apt-get install -y curl
# - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
# - sudo apt-get install -y nodejs
# - sudo pip install requests
# - sudo npm install -g gulp
# - sudo npm install -g gulp-cli
- curl https://dl.google.com/go/go1.12.1.linux-amd64.tar.gz --output /tmp/go1.12.1.linux-amd64.tar.gz
- sudo tar -C /usr/local -zxf /tmp/go1.12.1.linux-amd64.tar.gz
script:
- export GOROOT=/usr/local/go
- export GOPATH=$HOME/go
- export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
- go version
- go get github.com/gorilla/mux
- go get github.com/stretchr/testify
- which go
- cd $TRAVIS_BUILD_DIR/server/source
- go build
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
before_deploy:
- export TRAVIS_TAG=${TRAVIS_TAG:-snapshot-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- export RESULTRA_DIST_BIN="./build/dest/docker/resultra.linux-amd64.tar.gz"
- export RESULTRA_DIST_BIN_TAGGED="resultra.linux-amd64.$TRAVIS_TAG.tar.gz"
- cp $RESULTRA_DIST_BIN $RESULTRA_DIST_BIN_TAGGED
after_success:
- bash <(curl -s https://codecov.io/bash)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/hunk_w/srvisit.git
[email protected]:hunk_w/srvisit.git
hunk_w
srvisit
srvisit
master

搜索帮助