← 输入框|github.com|刷新
Skip to content

Build Linux + macOS bundles (Travis), build EXE (AppVeyor) - #123

Merged
cool-RR merged 8 commits into
PythonTurtle:masterfrom
bittner:feature/add-appveyor-ci-config
Oct 4, 2018
Merged

cool-RR merged 8 commits into
PythonTurtle:masterfrom
bittner:feature/add-appveyor-ci-config

Conversation

@bittner

@bittner bittner commented Oct 2, 2018

Copy link
Copy Markdown
Member
  • Use absolute import in __main__.py for PyInstaller to work
  • Add AppVeyor CI configuration

@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch from b1ff538 to 99f5bf9 Compare October 2, 2018 09:45
@bittner

bittner commented Oct 2, 2018

Copy link
Copy Markdown
Member Author

Can you create an account at AppVeyor and enable automatic builds for this repository, please?

This way we should see what AppVeyor is doing on Windows, with the configuration in this PR.

@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch 2 times, most recently from a375ad3 to fac41dd Compare October 2, 2018 11:46
@cool-RR

cool-RR commented Oct 2, 2018 via email

Copy link
Copy Markdown
Member

@bittner

bittner commented Oct 2, 2018 •

Copy link
Copy Markdown
Member Author

AppVeyor has a horr^H^H^H^H^H user interface that is not meant to be loved. I have suffered this morning, too. 😒

I think the users depend on what you have configured on GitHub (you grant the CI access to your GitHub organizations, and they allow access to accounts listed there; that's how CI services usually do it).

I'll try to push a change, then we maybe see something moving. Or can you trigger a build manually in your account?

@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch from fac41dd to ea51699 Compare October 2, 2018 14:51
@bittner

bittner commented Oct 2, 2018

Copy link
Copy Markdown
Member Author

It doesn't look like a build on AppVeyor was triggered. Can you check in the project settings of this repository on GitHub whether you have granted access to AppVeyor?

@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch from ea51699 to d1d67e6 Compare October 2, 2018 16:51
@cool-RR

cool-RR commented Oct 3, 2018

Copy link
Copy Markdown
Member

"Can you check in the project settings of this repository on GitHub whether you have granted access to AppVeyor?" I confirmed it's granted. (It was that way from before I made the check.)

"can you trigger a build manually in your account?" Did that now.

@bittner

bittner commented Oct 3, 2018

Copy link
Copy Markdown
Member Author

Can you share the link to the AppVeyor project? Please, also try whether the URL is accessible when you're not logged in into your AppVeyor account (i.e. anonymous access is allowed).

@cool-RR

cool-RR commented Oct 3, 2018 via email

Copy link
Copy Markdown
Member

@bittner

bittner commented Oct 3, 2018

Copy link
Copy Markdown
Member Author

AppVeyor builds are not triggered. There should be another link next to Travis CI here in the UI. Can you check what's wrong? Maybe AppVeyor has support tickets, or infos that help pinning the problem in their knowledge base.

@bittner

bittner commented Oct 3, 2018

Copy link
Copy Markdown
Member Author

Can you please also create an OAuth Token on GitHub via travis setup releases? (see Travis docs)

I let Travis build a Linux bundle and upload it to GitHub. That's where we need the encrypted OAuth Token. I have the code already prepared, only the token is now missing.

@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch from d429c88 to cd340b7 Compare October 3, 2018 14:27
@bittner

bittner commented Oct 3, 2018

Copy link
Copy Markdown
Member Author

If AppVeyor proves to be too cumbersome we can try Shippable. They provide Windows builds since recently. Do you want to try to create an account?

@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch 7 times, most recently from 53867d5 to e0c2db0 Compare October 4, 2018 04:52
@cool-RR

cool-RR commented Oct 4, 2018

Copy link
Copy Markdown
Member

I created an account, and enabled this project: https://app.shippable.com/github/cool-RR/PythonTurtle/dashboard

I'll do the oauth token later.

@cool-RR

cool-RR commented Oct 4, 2018

Copy link
Copy Markdown
Member

Could you tell me which commands to run for the oauth token?

@bittner

bittner commented Oct 4, 2018

Copy link
Copy Markdown
Member Author

The travis command and a link to the related docs are in the comment above. 😃

@bittner

bittner commented Oct 4, 2018

Copy link
Copy Markdown
Member Author

The builds on AppVeyor seem to work now! Awesome! 🎉

Can you try downloading and running the .EXE file that was built? The build spits out warnings all the way down, but who knows? Maybe it's working anyway.

I created an account, and enabled this project: https://app.shippable.com/github/cool-RR/PythonTurtle/dashboard

Cool! You need to make sure you have Windows builds enabled (as of the link in the comment above). I've been told by their support that, currently, we can only run Linux builds or Windows builds (for free) from the same account or GitHub organization.

@bittner bittner changed the title WIP: Add AppVeyor CI configuration Add AppVeyor CI configuration, build Linux and macOS bundles Oct 4, 2018
@bittner bittner changed the title Add AppVeyor CI configuration, build Linux and macOS bundles Build Linux + macOS bundles (Travis), build EXE (AppVeyor CI) Oct 4, 2018
@bittner bittner changed the title Build Linux + macOS bundles (Travis), build EXE (AppVeyor CI) Build Linux + macOS bundles (Travis), build EXE (AppVeyor) Oct 4, 2018
@bittner

bittner commented Oct 4, 2018

Copy link
Copy Markdown
Member Author

I think, we could merge this PR now. I've packed more into it than originally planned.

This would also trigger an upload to PyPI (and we could see if it works or why it fails).

@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch 2 times, most recently from 7e908c4 to a392466 Compare October 4, 2018 10:48
Fix Pylint and flake8 issues introduced w/ commit ad19ac8
@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch 2 times, most recently from b7d77f4 to 0e7637f Compare October 4, 2018 11:18
@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch 3 times, most recently from cd691ee to f162b76 Compare October 4, 2018 12:03
@bittner
bittner force-pushed the feature/add-appveyor-ci-config branch from f162b76 to 56d450d Compare October 4, 2018 12:04
@cool-RR
cool-RR merged commit 7112dec into PythonTurtle:master Oct 4, 2018
@cool-RR

cool-RR commented Oct 4, 2018

Copy link
Copy Markdown
Member

Great job! I downloaded the exe and it worked! It crashed after exiting the program, but that's probably because of a bug we have.

Do you still have interest in Shippable?

@bittner
bittner deleted the feature/add-appveyor-ci-config branch October 4, 2018 15:00
@bittner

bittner commented Oct 4, 2018

Copy link
Copy Markdown
Member Author

Do you still have interest in Shippable?

Yes, I'd like to get it running. Just to verify that there's a working alternative to AppVeyor. This will also give us a feeling which of the two is easier to handle, has a nicer UI, etc.

What's still missing now with both Travis and AppVeyor (and Shippable of course) is the automatic upload of created application bundles (executables) to GitHub when a tag is pushed. We need to work on that. ☝️

P.S.: Have you bought your space suit, now that we're getting ready to fly to mars? 😄

@bittner

bittner commented Oct 4, 2018

Copy link
Copy Markdown
Member Author

Re Shippable: Can you verify you have done all steps from Section 1 in Shippable's instructions for Windows builds?

@cool-RR

cool-RR commented Oct 4, 2018

Copy link
Copy Markdown
Member

I added you as an administrator on AppVeyor, let me know whether that worked.

@cool-RR

cool-RR commented Oct 4, 2018

Copy link
Copy Markdown
Member

I've added you as a collaborator on GitHub, I believe that'll make you a collaborator on Shippable, let me know if it doesn't.

I haven't done anything from the Shippable instructions. Looking at it now it says I need to "Purchase the on-demand WindowsServer 2016 SKU". So, that costs money?

@bittner

bittner commented Oct 4, 2018 via email

Copy link
Copy Markdown
Member Author

@cool-RR

cool-RR commented Oct 5, 2018

Copy link
Copy Markdown
Member

Weren't you made an administrator on the Shippable project? https://app.shippable.com/github/cool-RR/PythonTurtle/settings I hope I can make you an administrator so you could do it.

If not let me know and I'll contact their support.

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.

2 participants