Skip to content

CI integration - #15

Merged
proglottis merged 3 commits into
proglottis:masterfrom
phryneas:master
Nov 27, 2018
Merged

proglottis merged 3 commits into
proglottis:masterfrom
phryneas:master

Conversation

@phryneas

@phryneas phryneas commented May 3, 2017

Copy link
Copy Markdown
Contributor

This pull request adds

At the moment, both CIs fail and I guess I need some help from you to make it work.

  • in the windows tests, everything using C.gpgme_data_new_from_fd seems to fail?

  • the linux tests just plainly fail. I feel like there's just an environment variable that needs to be set for the library to be found or something, but I just don't see exactly what's missing. Maybe you have an idea?

If you want to test it yourself, best would be in a separate branch.
You can go to http://travis-ci.org/ and http://appveyor.com/ respectively, log in with your github account and enable automatic builds for the repository for any specific branch.
Tests will be run automatically as soon as something is pushed.

Comment thread .appveyor.yml
- copy "%GPG_DIR%\lib\libassuan.imp" "%GPG_DIR%\lib\libassuan.a"
- copy "%GPG_DIR%\lib\libgpgme.imp" "%GPG_DIR%\lib\libgpgme.a"
- set PATH=%GOPATH%\bin;%GOROOT%\bin;%GPG_DIR%\bin;C:\MinGW\bin;%PATH%
- C:\cygwin\bin\sed -i 's/"GPG_AGENT_INFO"/"GPG_AGENT_INFO="/;s/C.unsetenv(v)/C.putenv(v)/' %APPVEYOR_BUILD_FOLDER%\gpgme.go

@phryneas phryneas May 3, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also, this is a crude hack to get your crude hack working on MinGW. (on-the-fly replacing your unsetenv("GPG_AGENT_INFO") with putenv("GPG_AGENT_INFO=")) There might be better solutions, but I don't really speak C, so I can't do anything there :/

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I can patch this. TBH I'm not really sure why this cannot use os.Unsetenv considering this entire library is CGO I don't really understand the comment. Will have to do some testing.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@phryneas

phryneas commented May 3, 2017

Copy link
Copy Markdown
Contributor Author

Okay, I took another look. That was... trivial.
Now only TestContext_AssuanSend fails on Linux.

keltia added a commit to keltia/archive that referenced this pull request Nov 13, 2018
@proglottis
proglottis merged commit 3d85074 into proglottis:master Nov 27, 2018
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