背景:
我一直在为我的 PHP 项目使用 Travis CI,我真的很喜欢他们如何为您提供指向图片的链接,该图片显示您的项目当前构建的状态。
我目前正在使用 UNIX shell 脚本制作很多工具,并希望使用 Travis CI 来测试我的 UNIX 脚本。
我在互联网上搜索,试图找出如何实现这一目标。我去了主网站,搜索了 Stackoverflow 以及进行了一些谷歌搜索。
这似乎是不可能的。
我目前使用 shunit2 测试我的 shell 脚本和函数。
我的问题是:
最佳答案
绝对地。
我在这里做了一个简单的测试:https://travis-ci.org/soulseekah/test-shunit2-travis
我的 .travis.yml
文件是:
language: bash
before_script:
- curl -L "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz" | tar zx
script:
- bash equality_test.sh
存储库:https://github.com/soulseekah/test-shunit2-travis
关于shell - 使用 Travis CI 在 UNIX shell 脚本上进行测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20449707/