-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Conversation
version: 2 | ||
jobs: | ||
build: | ||
working_directory: /go/src/github.com/ahoy-cli/ahoy |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 - |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
looks like this has been merged. closing |
Updated CI configuration to use CircleCI 2.
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