代码拉取完成,页面将自动刷新
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)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。