簡體   English   中英

如何構建/安裝Travis Build?

[英]How to build/install Travis Build?

我想使用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讓我gem install bundler && bundle install --path vendor/bundle && bundle exec something

正如README中“用作CLI的插件”部分所述 ,以下內容適用於我:

  • git clone將repo git clone某個持久性目錄( ~/GitHub對我來說)
  • 來自~/GitHub/travis-build我使用了ln -s $(pwd) ~/.travis/travis-build (幾乎從README中逐字記錄)
  • 在運行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 ,表明它確實起作用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM