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

Ayi test #7

Open
2 of 8 tasks
at15 opened this issue Aug 8, 2015 · 6 comments
Open
2 of 8 tasks

Ayi test #7

at15 opened this issue Aug 8, 2015 · 6 comments

Comments

@at15
Copy link
Member

at15 commented Aug 8, 2015

Support .travis.yml/ .gitlab-ci.yml test locally using docker

  • .ayi.yml for test config
  • execute test commands
  • support pretest and post test like npm
  • merge test with other scripts, instead of the run keyword can be omitted
  • parse .ayi.yml and generate .travis.yml / .gitlab-ci.yml
  • run the test locally using docker
  • provide a commandline interface to view the test result
  • provide a simple web interface to view the test result

(yep ... ayi is also a local continuous integration system.

Problems encountered

  • 603e365 split string using space will cause problem, ie go test -v -cover $(glide novendor)
@at15
Copy link
Member Author

at15 commented Sep 2, 2015

https://github.com/FriendsOfPHP/Sismo this is a local ci system written in php

@arrowrowe
Copy link
Member

Seems no need to provide a simple web interface to view the test result, cause we could simply generate the html file like istanbul does...

@arrowrowe
Copy link
Member

Why not run the tests directly in the local environment instead of preparing docker?

@at15
Copy link
Member Author

at15 commented Sep 2, 2015

@arrowrowe yeah, you mean https://github.com/gotwarlost/istanbul Using docker makes test easier and cleaner, for example you don't need to create a project_name_test database manually and it will have little effect on your host system's database and files

@arrowrowe
Copy link
Member

Agree.

@at15
Copy link
Member Author

at15 commented Oct 1, 2015

this project is also a good ref, wathc file change and show result in browser, maybe could extend it to support other languages http://goconvey.co/

@at15 at15 closed this as completed Apr 1, 2016
@at15 at15 reopened this Jul 8, 2016
at15 referenced this issue Jul 8, 2016
- add util wrapper to run command as whole string
- FIXME: can not run command which has subshell
at15 added a commit that referenced this issue Jul 8, 2016
- sh -c is not working properly, even for simple command
- $(glide novendor) does not even work when direct typed into gitbash,
  it seems the new line has stopped the command from executing

Issue #7
at15 added a commit that referenced this issue Jul 8, 2016
- rename test.sh -> travis-test.sh and change Makefile
- add new test.sh to call from Ayi

Issue #7
@at15 at15 mentioned this issue Jul 8, 2016
4 tasks
at15 added a commit that referenced this issue Jul 8, 2016
$(glide novendor) is just handled as simple string

Issues #41 #7
at15 added a commit that referenced this issue Jul 8, 2016
By passing the test command using native exec.Command, the test can run.
Though there is a compile error for two main package in same folder

Issues #41 #7
@at15 at15 closed this as completed Aug 21, 2016
@at15 at15 reopened this Sep 6, 2016
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

No branches or pull requests

2 participants