https://github.com/blakeliafk/go-ci-template
https://github.com/blakeliafk/go-ci-template
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/blakeliafk/go-ci-template
- Owner: BlakeLiAFK
- Created: 2019-06-21T02:42:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T05:53:59.000Z (almost 6 years ago)
- Last Synced: 2025-02-07T08:23:30.417Z (4 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-ci-template
[](https://travis-ci.org/DGHeroin/go-ci-template)
## Travis-CI 构建模板
```yaml
language: go
sudo: false
before_script:
- go vet ./...
install:
# Add Godeps dependencies to GOPATH and PATH
- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH"
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
```## Travis-CI 自动部署
### macOS
```yaml
gem install travis # 安装 travis 工具自动生成 .travis.yml
travis setup releases # 重新生成带部署的 .travis.yml
```