rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

Add AppVeyor CI support #135

Closed adrianbroher closed 7 years ago

adrianbroher commented 7 years ago

Playground.

adrianbroher commented 7 years ago

@rougier At least on the AppVeyor side of things this should be set up properly. Can you please check if there was a Webhooks installed for the AppVeyorCI (Project Settings > Webhooks should list _https://ci.appveyor.com/api/github/webhook (pullrequest and push))?

rougier commented 7 years ago

No, I don't see it, only Zenodo. I can try to add it by hand but I would need more information

rougier commented 7 years ago

I just added the AppVeyor hook. Output:

Build started
git clone -q --branch=master https://github.com/rougier/freetype-gl.git C:\projects\freetype-gl
git checkout -qf 4014bc92b0d72224e23417b5b91f38d9465d8d86
Specify a project or solution file. The directory does not contain a project or solution file.
rougier commented 7 years ago

Can you access AppVeyour output by the way ?

After merge:

CMake Error at CMakeLists.txt:96 (message):
  `M_PI` not defined in `math.h`.
-- Configuring incomplete, errors occurred!
adrianbroher commented 7 years ago

Undoing the merge. This is intentional playground.

adrianbroher commented 7 years ago

Can you access AppVeyour output by the way ?

Yes: https://ci.appveyor.com/project/adrianbroher/freetype-gl

rougier commented 7 years ago

Sorry for the merge. I guess I'll configure appveyor to track the appveyor branch.

rougier commented 7 years ago

Done.

adrianbroher commented 7 years ago

I'm confused:

You added another project under your name?

rougier commented 7 years ago

Yes. From your question I guess this is not the way to go... AppVeyor hook was absent from the freetype-gl settings

adrianbroher commented 7 years ago

Well, okay. I will ask for guidance again after reading the appveyor docs.

rougier commented 7 years ago

I've never used AppVeyor before, I might be wrong. I'll check documentation as well.

adrianbroher commented 7 years ago

What I found out so far:

Creating a webhook on github requires Administrator permissions. When somebody creates a project Appveyor installs only a webhook when that person has said admin rights on github for the repository.

You can recreate a webhook manually if the automatic creation failed for some reason: http://help.appveyor.com/discussions/questions/2272-github-webhook-deleted-how-to-recreate

This seems to work so far. I force pushed something onto the appveyor branch and that triggered a build (currently failing of course).

Regarding the permissions: it's complex. An account on AppVeyor is more like an Github Organization than a regular account. You can add collaborators to the AppVeyor accounts in a specific role. For now there is nothing interesting here for this project IMO. https://www.appveyor.com/docs/team-setup