我想使用Travis Build,但是除了非常模糊ln -s PATH_TO_TRAVIS_BUILD ~/.travis/travis-build
的使用Travis CLI之外,没有其他构建/安装说明。我认为这是某种类似于“”的咒语gem install bundler && bundle install --path vendor/bundle && bundle exec something
,但这使something
我难以理解。
如自述文件中“用作CLI的加载项”部分所述,以下内容对我有用:
git clone
将存储库放入某个持久目录(~/GitHub
对我而言)~/GitHub/travis-build
我所用ln -s $(pwd) ~/.travis/travis-build
(取几乎是逐字自述)运行后travis
(无参数),我得到以下输出:
nabijaczleweli@klusikomp-vm:~/.travis$ travis
Usage: travis COMMAND ...
Available commands:
accounts displays accounts and their subscription status
branches displays the most recent build for each branch
cache lists or deletes repository caches
cancel cancels a job or build
compile compiles a build script from .travis.yml
console interactive shell
disable disables a project
enable enables a project
encrypt encrypts values for the .travis.yml
encrypt-file encrypts a file and adds decryption steps to .travis.yml
endpoint displays or changes the API endpoint
env show or modify build environment variables
help helps you out when in dire need of information
history displays a projects build history
init generates a .travis.yml and enables the project
lint display warnings for a .travis.yml
login authenticates against the API and stores the token
logout deletes the stored API token
logs streams test logs
monitor live monitor for what's going on
open opens a build or job in the browser
pubkey prints out a repository's public key
raw makes an (authenticated) API call and prints out the result
report generates a report useful for filing issues
repos lists repositories the user has certain permissions on
requests lists recent requests
restart restarts a build or job
settings access repository settings
setup sets up an addon or deploy target
show displays a build or job
sshkey checks, updates or deletes an SSH key
status checks status of the latest build
sync triggers a new sync with GitHub
token outputs the secret API token
version outputs the client version
whatsup lists most recent builds
whoami outputs the current user
run `/usr/local/bin/travis help COMMAND` for more infos
请注意其中的第10行:compile compiles a build script from .travis.yml
,表明它确实起作用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句