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

Add TravisCI support #1

Open
desyncr opened this issue Jan 2, 2017 · 4 comments
Open

Add TravisCI support #1

desyncr opened this issue Jan 2, 2017 · 4 comments
Assignees
Milestone

Comments

@desyncr
Copy link
Owner

desyncr commented Jan 2, 2017

@desyncr desyncr self-assigned this Jan 27, 2017
@desyncr desyncr added this to the 0.1.0 milestone Jan 29, 2017
@fennecdjay
Copy link
Collaborator

I don't if it is what you need, but here is what I came with: this.

It use your version of zcram.
Travis would probably handle

pip install cram

I still believe we could use bats.
I did not quite look either zcram or cram, but I feel a shell-based TAP protocol would be the rigth thing for zpm.
I can provide bats test file if you want to give it a try.

@desyncr
Copy link
Owner Author

desyncr commented Feb 2, 2017

First, sorry for delaying bunch of -seemenly simple- tasks for so long, I've been quite busy lately and I've been behind work for some time. I'm gonna try to catch up in this weekend.

Second, I have some experience using cram and I find it quite useful not only for testing -functional, regression- but also for documentation because of how tests are implemented.
I haven't found a similar tool written in shell. I believe it should not be a requirement though.

By the way:

  • We are gonna tests against current zsh in debian (5.2 I believe), we'll need to apt-get install zsh
  • We are gonna use cram, so yes, pip install cram would suffice

@desyncr
Copy link
Owner Author

desyncr commented Feb 2, 2017

Something like this: https://gist.github.com/desyncr/5cb0ac4a4f1f6439fbfe867cd9e162ad
I haven't tested it though. Possible issues with:

  • missing pip
  • Makefile still references zcram

@fennecdjay
Copy link
Collaborator

fennecdjay commented Feb 2, 2017

It looks like

install:
  - sudo -H pip install cram

does the job.

and the Makefile can be modified with

sed -i "s/zcram/cram/" Makefile

see this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants