Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] generate .travis.yml #191

Merged
merged 19 commits into from
Nov 19, 2018
Merged

[feature] generate .travis.yml #191

merged 19 commits into from
Nov 19, 2018

Conversation

ryanking
Copy link
Contributor

Auto-generate a .travis-ci.yml based on fogg.json.

This introduced a new top-level config in fogg.json for configuring things about travis ci.

When enabled it will use the accounts config to set up profiles and then bucket all the components and modules into a configured number of buckets.

@ryanking ryanking requested a review from a team as a code owner November 16, 2018 22:58
@ryanking ryanking changed the title generate travis-ci [feature] generate .travis.yml Nov 16, 2018
@codecov
Copy link

codecov bot commented Nov 16, 2018

Codecov Report

Merging #191 into master will increase coverage by 0.09%.
The diff coverage is 70.58%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #191      +/-   ##
==========================================
+ Coverage   69.26%   69.35%   +0.09%     
==========================================
  Files           8       10       +2     
  Lines         693      744      +51     
==========================================
+ Hits          480      516      +36     
- Misses        129      137       +8     
- Partials       84       91       +7
Impacted Files Coverage Δ
config/config.go 74.19% <ø> (ø) ⬆️
plan/plan.go 92.34% <0%> (-1.03%) ⬇️
apply/apply.go 61.22% <50%> (-0.19%) ⬇️
plan/travisci.go 71.42% <71.42%> (ø)
util/maps.go 90% <90%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b64e57...9aace02. Read the comment docs.


func (p *Plan) buildTravisCI(c *config.Config) TravisCI {
if p.Accounts == nil {
panic("buildTravisCI must be run after buildAccounts")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not return an error instead?

Copy link
Contributor

@edulop91 edulop91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only thing I wonder is if we should allow users to have their own travis logic as well. Might also be worth adding a bit to the readme or something about this feature.

@ryanking
Copy link
Contributor Author

@edulop91 good idea

@ryanking ryanking merged commit 5d7cc01 into master Nov 19, 2018
@ryanking ryanking deleted the ryanking/travis_ci branch November 19, 2018 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants