Travis CI
Test and Deploy Your Code with Confidence
Life Cycle:
- OPTIONAL Install
apt addons
- OPTIONAL Install
cache components
before_install
install
before_script
script
- OPTIONAL
before_cache
(for cleaning up cache) after_success
orafter_failure
- OPTIONAL
before_deploy
- OPTIONAL
deploy
- OPTIONAL
after_deploy
after_script
Go
language: go
go:
- 1.9
notifications:
email: false
install:
- # skip
script:
- go test ./...
- GOOS=linux GOARCH=arm go build -o barito-flow-linux
- GOOS=darwin GOARCH=amd64 go build -o barito-flow-darwin
deploy:
provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file:
- barito-flow-linux
- barito-flow-darwin
on:
tags: true
repo: BaritoLog/barito-flow
all_branches: true
Using go latest version
go:
- tip
Github
Got problem:
Skipping a deployment with the releases provider because this is not a tagged commit
Workaround –> remove the branches