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

Updated CI configuration to use CircleCI 2. #75

Closed
wants to merge 1 commit into from
Closed

Updated CI configuration to use CircleCI 2. #75

wants to merge 1 commit into from

Conversation

AlexSkrypnyk
Copy link
Collaborator

@AlexSkrypnyk AlexSkrypnyk commented Jul 17, 2019

  • Added CircleCI 2 config file.
  • Removed CircleCI 1 config file.

CI build result in my fork (not sure why the build does not run here - maybe need to enable a flag in CI to build forks?):

https://circleci.com/gh/integratedexperts/ahoy/13

version: 2
jobs:
build:
working_directory: /go/src/github.com/ahoy-cli/ahoy
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is where build.sh is expecting the project to be installed to

build:
working_directory: /go/src/github.com/ahoy-cli/ahoy
docker:
- image: circleci/golang
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

standard golang image managed by circleci

- image: circleci/golang
steps:
- checkout
- run: git clone https://github.com/bats-core/bats-core.git && cd bats-core && sudo ./install.sh /usr/local && bats --version && cd -
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

installing bats from sources. this is easier then installing it from npm, as npm installation into this image requires many more steps

steps:
- checkout
- run: git clone https://github.com/bats-core/bats-core.git && cd bats-core && sudo ./install.sh /usr/local && bats --version && cd -
- run: sudo apt install php
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

installing php as it is required for one of the tests

- checkout
- run: git clone https://github.com/bats-core/bats-core.git && cd bats-core && sudo ./install.sh /usr/local && bats --version && cd -
- run: sudo apt install php
- run: go get -u golang.org/x/lint/golint
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated golint install path
See golang/lint#415

@AlexSkrypnyk AlexSkrypnyk changed the title Moved to CircleCI 2. Updated CI configuration to use CircleCI 2. Jul 17, 2019
This was referenced Jul 17, 2019
@AlexSkrypnyk
Copy link
Collaborator Author

looks like this has been merged. closing

hanoii pushed a commit to hanoii/ahoy that referenced this pull request Feb 28, 2024
Updated CI configuration to use CircleCI 2.
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.

None yet

1 participant