Skip to content

[IBE-561] Setup circleci#65

Merged
meyerhot95 merged 1 commit intoscratchfoundation:masterfrom
meyerhot95:tsm/circleci
Nov 15, 2022
Merged

[IBE-561] Setup circleci#65
meyerhot95 merged 1 commit intoscratchfoundation:masterfrom
meyerhot95:tsm/circleci

Conversation

@meyerhot95
Copy link
Copy Markdown
Contributor

@meyerhot95 meyerhot95 commented Oct 25, 2022

Resolves

https://scratchfoundation.atlassian.net/browse/IBE-561

Proposed Changes

Move from travis to circle while retaining maximal continuity with old config.

Reason for Changes

Deprecating travis

Test Coverage

Manually tested

@meyerhot95 meyerhot95 changed the title Setup circleci [IBE-561] Setup circleci Oct 29, 2022
Copy link
Copy Markdown
Contributor

@cwillisf cwillisf left a comment

Choose a reason for hiding this comment

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

Since this repo uses semantic-release it's going to need a couple extra steps. Other than that, though, this looks good. Thanks!

before_script:
- npm prune
script:
- commitlint-travis
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since this repo uses semantic-release, I'd recommend keeping commitlint in the CI steps. There's no commitlint-travis on CircleCI, of course, but there is an Orb for it. You can find an example here:

https://github.com/LLK/scratch-gui/blob/develop/.circleci/config.yml#L4
https://github.com/LLK/scratch-gui/blob/develop/.circleci/config.yml#L216-L219

Once you add that, commitlint will start complaining about the commits in this PR. You'll need to rephrase them according to the Conventional Commits spec.

The easiest way is probably to run git rebase -i 0d9ea0b^ and then pick r for "reword" on all your commits.

Comment on lines +68 to +74
when:
not:
or:
- equal: [ master, <<pipeline.git.branch>> ]
- equal: [ develop, <<pipeline.git.branch>> ]
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I hadn't thought to filter this, but that's a good idea. I should add this to other repos!

@meyerhot95 meyerhot95 merged commit e42298c into scratchfoundation:master Nov 15, 2022
@scratch-deployer
Copy link
Copy Markdown

🎉 This PR is included in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants