Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

WIP: circleci version 2 migration #63

Merged
merged 1 commit into from
Mar 23, 2018

Conversation

StevenWatremez
Copy link
Contributor

@StevenWatremez StevenWatremez commented Mar 20, 2018

This PR is the WIP migration from circleCi 1 to 2. I need additional tests to succeed env management inside rakefile. fix #60

@StevenWatremez
Copy link
Contributor Author

It's ok for me but I have a question about ruby docker image for CI. I wanted to fix docker image to circleci/ruby:2.0.0 but circle-ci have no docker image for ruby < 2.2. So I changed this image to target latest but we won't able to test ruby 2.0.0 compat.

@AliSoftware
Copy link
Collaborator

Ah, damn. I'll ask about the docker image to my contacts at Circle on slack

@AliSoftware
Copy link
Collaborator

Quoting Danielle:

We mirror the official ruby image tags :/ you may have to build an image yourself for that

Probably not worth the hassle though.

command: ruby -v
- run:
name: Which bundler?
command: bundle -v
Copy link
Collaborator

Choose a reason for hiding this comment

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

Open question: wondering if we want to keep that (assuming it was for debugging the migration)? I guess it's harmless…

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for bundler I am not sur this version check is necessary but for ruby, because of latest image set on config.yml, I wanted to show on which version CI execute build and tests. So do we keep the bundler version ? I have no arguments to keep it.

command: bundle -v
- run:
name: Bundle Install
command: bundle check || bundle install
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is bundle check || really necessary? I may be wrong but I think bundle install is a no-op if the bundle is already up-to-date, so just bundle install could be enough there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I found interesting things about this command. Initialy I copy paste it from CircleCi config for ruby project. But when you commented this line I searched explanation on bundler. I found this issue #95. related to this line bundler.cap

So when bundle install is launched a test with bundle check is executed.

So I will delete bundle check command.

@StevenWatremez
Copy link
Contributor Author

StevenWatremez commented Mar 21, 2018

Bad news for docker image. I am agree with you, it's not worth to maintain by ourselves.

docker:
- image: drecom/ubuntu-ruby:2.0.0-p648
steps:
- checkout
Copy link
Collaborator

Choose a reason for hiding this comment

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

You probably don't want to checkout on each and every step!

@StevenWatremez
Copy link
Contributor Author

Ok I implement workflows but github waiting for circleci status. I found a documentation about this but I am not able to access gyro settings.

@StevenWatremez
Copy link
Contributor Author

I think before merging this PR, it will be useful to squash it into one commit.

Using workflows to test against both Ruby 2.0.0 & latest ruby
@AliSoftware AliSoftware force-pushed the feature/circleci-2-migration branch from 49219e1 to 36575bb Compare March 23, 2018 10:13
@AliSoftware AliSoftware merged commit 03c9498 into master Mar 23, 2018
@AliSoftware AliSoftware deleted the feature/circleci-2-migration branch March 23, 2018 10:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration to CircleCi 2
2 participants