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

Publish the public API as a JSON object #7120

Merged
merged 9 commits into from Sep 16, 2016
Merged

Publish the public API as a JSON object #7120

merged 9 commits into from Sep 16, 2016

Conversation

zeke
Copy link
Contributor

@zeke zeke commented Sep 6, 2016

This is a followup to #6408, a closed PR which I was unable to re-open after a force-push. Please see that PR for context on this effort.

I finished everything in the electron-docs-linter milestone and with @kevinsawicki's help I've added the necessary code to upload the generated JSON object along with the Electron release.

@zcbenz this is ready for review.

@@ -128,6 +129,8 @@ def copy_license():
DIST_DIR)
shutil.copy2(os.path.join(SOURCE_ROOT, 'LICENSE'), DIST_DIR)

def copy_api_json():
shutil.copy2(os.path.join(OUT_DIR, 'electron-api.json'), DIST_DIR)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a 2 space indent.

@zeke
Copy link
Contributor Author

zeke commented Sep 7, 2016

Travis CI is failing because it's using node 0.10

AppVeyor is failing on something that I think is unrelated:

ENOENT: no such file or directory, open 'C:\projects\electron\spec\does-not-exist\manifest.json

electron-osx-x64 CI is failing in the npm run lint task, but not failing in my local macOS environment.

@kevinsawicki @zcbenz any tips on how I can isolate this new stuff to only run in the necessary CI environment(s)?

@@ -78,6 +78,7 @@ def main():
upload_electron(github, release, os.path.join(DIST_DIR, DIST_NAME))
upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME))
if PLATFORM == 'darwin':
upload_electron(github, release, os.path.join(DIST_DIR, 'electron-api.json'))
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is over 80 characters and causing script/pylint.py to fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Fixed.

@@ -78,6 +78,8 @@ def main():
upload_electron(github, release, os.path.join(DIST_DIR, DIST_NAME))
upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME))
if PLATFORM == 'darwin':
upload_electron(github, release, os.path.join(DIST_DIR,
Copy link
Member

Choose a reason for hiding this comment

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

The indention is not correct.

@zeke
Copy link
Contributor Author

zeke commented Sep 13, 2016

All CI builds are passing but Travis, which is giving this error:

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Traceback (most recent call last):
  File "./script/cibuild", line 120, in <module>
    sys.exit(main())

I tried a manual rebuild but it seems to be failing in the same spot.

@MarshallOfSound
Copy link
Member

@zeke It looked like travis was having some issues this morning (other builds have been failing with this issue as well)

@zcbenz
Copy link
Member

zcbenz commented Sep 14, 2016

This looks good to me, feel free to merge when you think it is ready.

@zeke zeke merged commit d4b2047 into master Sep 16, 2016
@zeke zeke deleted the lint-docs branch September 16, 2016 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants