JulianNorton / weather-10kb-wxkb

Weather forecast that's high performance and accessible

Home Page:https://wxkb.juliannorton.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set up circleCI auto testing on pull-requests

JulianNorton opened this issue · comments

What's the current situation?

I set up a circleCI integration but it's not working.
capture

What do you recommend?

Someone who has circleCI experience google hangouts with me and help me fill the correc info.

I don’t have experience with circleCI, but – surely it can show you a build log with more details? That might give us a clue why the build is failing.

Thanks for reminding me, should have included the link!
https://circleci.com/gh/JulianNorton/weather-10kb/7

Expand the npm install tab.

  • EPEERINVALID
  • Peer dependencies are not satisfied? I'm not sure if it's a problem with package.json or just how I set up CircleCI.

It’s an issue with newer versions of npm. eslint-plugin-import has to be required in package.json – try that, and I’m sure it’s going to work.

I can also see other deprecation warnings in that log. Time to update our dependencies! But for the scope of this issue, adding the missing peer dependency should be enough.

Let’s see if we can get this working together.

Here is what I came up with after studying the documentation and fiddling around with Mocha/Istanbul: https://github.com/JulianNorton/weather-10kb/blob/feature-circle-ci-config/.circleci/config.yml

I also added nyc as a wrapper for running tests and creating coverage reports. Istanbul was already installed, but nyc does a better job at generating the output we need for CI.

Please give it a try with the feature-circle-ci-config branch. Fingers crossed

https://circleci.com/gh/JulianNorton/weather-10kb/16

Build-agent version 0.0.3342-632334b (2017-06-10T15:30:43+0000)
Configuration errors: 1 error occurred:

* 1 error occurred:

* In job 'build': 2 errors occurred:

* missing executor type
*  is not supported executor type

Ah, I see. The configuration requires you to either specify at least one Docker image to use for execution, or to set machine: true on the build key. I chose to go with the former and added the missing node image. Please test again.

https://circleci.com/gh/JulianNorton/weather-10kb/19

It can test on the separate branch! It's also getting further before failing. I'll stop merging into master until it's figured out.

I think it's failing on this error

Directory (/home/circleci) you are trying to checkout to is not empty and not git repository

Anything you commit @Tardog will run here: https://circleci.com/gh/JulianNorton/weather-10kb/tree/feature-circle-ci-config

Thanks – that was incredibly helpful! We have a successful build: https://circleci.com/gh/JulianNorton/weather-10kb/26

Awesome :).

💃 💃 👍 🎉