2018-02-01 23:05:39 +00:00
|
|
|
---
|
|
|
|
defaults: &defaults
|
|
|
|
docker:
|
2018-03-09 22:13:52 +00:00
|
|
|
- image: 'circleci/golang:1.9.4'
|
2018-02-01 23:05:39 +00:00
|
|
|
working_directory: '/go/src/github.com/influxdata/telegraf'
|
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: 'make ci-test'
|
|
|
|
release:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: './scripts/release.sh'
|
|
|
|
- store_artifacts:
|
|
|
|
path: './artifacts'
|
|
|
|
destination: '.'
|
|
|
|
nightly:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: './scripts/release.sh'
|
|
|
|
- store_artifacts:
|
|
|
|
path: './artifacts'
|
|
|
|
destination: '.'
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_and_release:
|
|
|
|
jobs:
|
|
|
|
- 'build'
|
|
|
|
- 'release':
|
|
|
|
requires:
|
|
|
|
- 'build'
|
|
|
|
nightly:
|
|
|
|
jobs:
|
|
|
|
- 'build'
|
2018-02-02 20:29:54 +00:00
|
|
|
- 'nightly':
|
|
|
|
requires:
|
|
|
|
- 'build'
|
2018-02-01 23:05:39 +00:00
|
|
|
triggers:
|
|
|
|
- schedule:
|
2018-02-08 02:30:43 +00:00
|
|
|
cron: "0 18 * * *"
|
2018-02-01 23:05:39 +00:00
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|