Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

CI: Configure AppVeyor #937

Closed
wants to merge 3 commits into from
Closed

CI: Configure AppVeyor #937

wants to merge 3 commits into from

Conversation

am11
Copy link
Contributor

@am11 am11 commented Jan 20, 2015

This PR:

  • adds appveyor.yml to tests on builds on Windows.
  • adds AppVeyor badge to repo's readme.
  • updates dependencies' versions.

It is passing all the tests: https://ci.appveyor.com/project/am11/node-jscs/build/6.

Previously, for some crazy reason, it was failing with node version 0.11.14, so I removed version matrix from the configuration which renders it test only on latest stable version of node (v0.10.35). On TravisCI, jscs is also tested against node v0.10.35, so I presume the issue is common (probably due to some dependency?).

See #937 (comment).

Next steps:

  • After merging this, the repo owner (or collaborator under jscs-dev organisation) would need to logon once on Appveyor with GitHub credentials.
  • On account selection screen choose jscs-dev from dropdown list (label: Account) and press the GitHub button again.
  • On landing page click on Add Project and select node-jscs to keep the ball rolling.

🎉

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 6a70d8b on am11:master into b4ab228 on jscs-dev:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling d4a849b on am11:master into b4ab228 on jscs-dev:master.

@markelog
Copy link
Member

-1 from me, one CI is enough, i think it's fair to say we depend on other tools for jscs to be cross-platform.

@am11
Copy link
Contributor Author

am11 commented Jan 20, 2015

Alright. jshint repo has it, I thought it might be a good idea to configure appveyor for jscs as well (especially for curious contributors, who are not using Windows machine).

@markelog
Copy link
Member

@mdevils what is your take on this?

@mikesherov
Copy link
Contributor

FWIW, I don't think it can really hurt.

@mikesherov
Copy link
Contributor

ping @mdevils

@mdevils
Copy link
Member

mdevils commented Jan 30, 2015

+1 from me.

We had issues with windows and several times we broke windows.

@mdevils
Copy link
Member

mdevils commented Jan 30, 2015

In this example tests were not run, just linting and style checking were included. Can you please enable tests?

@am11 am11 force-pushed the master branch 10 times, most recently from 56e6ad0 to c167c0a Compare January 30, 2015 05:32
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.75% when pulling c167c0a on am11:master into 476ada5 on jscs-dev:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.75% when pulling 10c1813 on am11:master into 476ada5 on jscs-dev:master.

@am11 am11 force-pushed the master branch 2 times, most recently from 21cff41 to 9d24239 Compare January 30, 2015 05:47
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.75% when pulling 21cff41 on am11:master into 476ada5 on jscs-dev:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.75% when pulling 9d24239 on am11:master into 476ada5 on jscs-dev:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.75% when pulling 174ca21 on am11:master into 476ada5 on jscs-dev:master.

@am11
Copy link
Contributor Author

am11 commented Jan 30, 2015

@mdevils I have enabled the tests. Here are some notes:

Meanwhile I have marked allow_faliure for v0.10 branch until mocha next build is release. For rest of matrix (njs v0.11 and io.js v1.0), IMO those tests should be fixed before removing those versions under allow_faliure block. Currently, all three of them are allowed to fail.

https://ci.appveyor.com/project/am11/node-jscs/build/20

@dougwilson, @FeodorFitsner, is it normal to get Command exited with code 4 (for instance in io.js turn also njs v0.11)? AFAICT, after running all the tests, it should exit with code 0 since the process has completed successfully (although some tests failed). Please CMIIW.

"rewire": "~2.1.0",
"sinon": "~1.12.0",
"rewire": "~2.1.4",
"sinon": "~1.12.2",
Copy link
Member

Choose a reason for hiding this comment

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

Is dependencies update required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nops, just did it in a separate commit. All is working fine though.

Copy link
Member

Choose a reason for hiding this comment

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

Alrighty, it's fine, could merge it with it

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.77% when pulling 3f901a0 on am11:master into ccff217 on jscs-dev:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.77% when pulling a65fe4e on am11:master into ccff217 on jscs-dev:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.77% when pulling 74c74e9 on am11:master into ccff217 on jscs-dev:master.

@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/jscs-dev/node-jscs.svg?branch=master)](https://travis-ci.org/jscs-dev/node-jscs)
[![Build Status](https://travis-ci.org/jscs-dev/node-jscs.svg?branch=master)](https://travis-ci.org/jscs-dev/node-jscs)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this line changed? Seems no different to me? @am11, are you using correct line endings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mikesherov, yeah that was both CRLF and BOM. Fixed by 3477d8a.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.77% when pulling 2f591b8 on am11:master into ccff217 on jscs-dev:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.77% when pulling 2d73306 on am11:master into ccff217 on jscs-dev:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.77% when pulling 3477d8a on am11:master into ccff217 on jscs-dev:master.

@mikesherov
Copy link
Contributor

@am11 can you please rebase this. @markelog seems like we're good now with landing this?

test_script:
- npm test

build: off
Copy link
Member

Choose a reason for hiding this comment

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

Can you give me link to this setting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure: http://www.appveyor.com/docs/appveyor-yml (Ctrl+F, search for: '174')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They use build slug for msbuild systems (mostly Visual Studio projects).

@am11
Copy link
Contributor Author

am11 commented Feb 6, 2015

@mikesherov, done. :)

@markelog
Copy link
Member

markelog commented Feb 6, 2015

LGTM

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.71% when pulling 6811bd9 on am11:master into 38459ea on jscs-dev:master.

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.

7 participants