Skip to content

Fix TravisCI and make compatible with go-ipfs v0.4.3rc2 #51

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

Merged
merged 3 commits into from
Aug 10, 2016

Conversation

whereswaldon
Copy link
Contributor

TravisCI previously ignored the functional tests that required an IPFS daemon to be running. #46 enabled those tests, but did not configure TravisCI to run an IPFS daemon. Now, Travis will download the release version of go-ipfs v0.4.3rc2 and run it before running the tests, ensuring that the functional tests pass too.

There have been some changes to the HTTP API responses since go-ipfs v0.4.3rc1, so this PR also updates the tests to reflect those changes.

This will resolve #50

Christopher Waldon added 3 commits August 10, 2016 07:29
go-ipfs v0.4.3rc2 has changed to the IPFS api some.
This commit updates the responses that our tests
expect to match those from this newer API, as well
as fixing the handling for adding strings (which
appears to have changed a lot). It also updates the
README to specify which version of IPFS is being
tested against so that users can make more
informed decisions when using this package.

License: MIT
Signed-off-by: Christopher Waldon <ckwaldon@us.ibm.com>
TravisCI now installs the latest version of IPFS
and runs the daemon before starting the testing
suite. This means that the functional tests can
now pass, whereas before they "failed to connect"
to a non-running daemon. Unfortunately, TravisCI
will "go get" IPFS, which gives us no control
over the version. We will get whatever the
latest commit is. As soon as go-ipfs v0.4.3 is
finalized and released, the TravisCI config
should be changed to install that instead.

License: MIT
Signed-off-by: Christopher Waldon <ckwaldon@us.ibm.com>
Also run only current Python version tests in TravisCI matrix.

License: MIT
Signed-off-by: Christopher Waldon <ckwaldon@us.ibm.com>
before_script:
- wget "https://dist.ipfs.io/go-ipfs/v0.4.3-rc2/go-ipfs_v0.4.3-rc2_linux-amd64.tar.gz" -O /tmp/ipfs.tar.gz
- mkdir $HOME/bin
- pushd . && cd $HOME/bin && tar -xzvf /tmp/ipfs.tar.gz && popd
Copy link
Contributor

Choose a reason for hiding this comment

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

I have never used Travis before: Are its scripts guaranteed to be run with bash?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know, actually. I took the way that I did this from the TravisCI Documentation. Do you have a different way of doing this in mind?

Copy link
Contributor

Choose a reason for hiding this comment

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

If it's in the official docs then it's fine. I just have seen too many thing fail because of bashisms to not ask. 😉

@ntninja
Copy link
Contributor

ntninja commented Aug 10, 2016

Tested and verified that it indeed fixes all functional tests in py-ipfs-api. 👍

@ntninja ntninja merged commit 5479dab into ipfs-shipyard:master Aug 10, 2016
@ntninja
Copy link
Contributor

ntninja commented Aug 10, 2016

Thanks for your contribution!

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.

TravisCI is broken
2 participants