desyncr / zpm-zsh

Main repository: https://github.com/zpm-project/zpm-zsh
GNU General Public License v3.0
2 stars 4 forks source link

Add TravisCI support #1

Open desyncr opened 7 years ago

desyncr commented 7 years ago
fennecdjay commented 7 years ago

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 commented 7 years ago

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:

desyncr commented 7 years ago

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

fennecdjay commented 7 years ago

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.