Я бы хотел использовать Travis Build, но для его использования с Travis CLI нет инструкций по сборке/установке, кроме очень неопределенного ln -s PATH_TO_TRAVIS_BUILD ~/.travis/travis-build
. Я предполагаю, что это какое-то заклинание вдоль линий gem install bundler && bundle install --path vendor/bundle && bundle exec something
, но что something
уклоняется от меня.Как построить/установить Travis Build?
3
A
ответ
3
Как указано в Use as addon for CLI section in the README, следующий работал для меня:
git clone
ИНГ репо в некоторого постоянного каталога (~/GitHub
для меня)- из
~/GitHub/travis-build
я использовалln -s $(pwd) ~/.travis/travis-build
(взятый почти дословно README) после запуска
travis
(без аргументов) Я получил следующий результат:[email protected]:~/.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
, что указывает на то, действительно, работу.
+1
Я прищурился, потому что я наивно думал, что команда будет 'build', а не' compile'. Я просто должен был сделать, как вы сказали, плюс установить пакет 'travis-build'. – l0b0
Смежные вопросы
- 1. Travis CI Build Failure
- 2. Ошибка в travis ci build
- 3. Travis CI Build Keeps Failing
- 4. Travis CI build при первом добавлении репозитория
- 5. Обложка сканирования на матрицу travis build
- 6. travis-ci build не работает с ShellCommandUnresponsiveException
- 7. travis ci yml build ionic app
- 8. Travis build не заканчивается должным образом
- 9. Машинопись, не найденная в Travis Build
- 10. travis ci build failing - причина: пространство PermGen
- 11. Travis build with nodejs en custom ftp
- 12. Symfony2 Travis CI Не удается открыть файл "/home/travis/build/myname/myproject/app/bootstrap.php.cache"
- 13. Могу ли я генерировать скрипт сборки, включая настройку окружения с помощью travis-ci/travis-build?
- 14. Travis Build Multiple Docker Изображения из одного репо
- 15. Travis CI С Ant Build, не находя JUnit
- 16. Команда Travis-ci «./gradlew build» вышла с 1
- 17. Travis build занимает больше 50 минут -> kill
- 18. Travis CI build не удалось выполнить задачу градации
- 19. Travis Build не может найти Diff :: LCS :: SpecHelper для Rspec
- 20. Travis CI Build Fails для android-20 and android-22
- 21. Travis CI build не работает с Android Constraint Layout
- 22. GitHub repo failing Travis CI build из-за «консоли-браузера»
- 23. Travis-ci build терпит неудачу, но тесты проходят локально
- 24. Что означает оставшиеся_треки в ответе api, запрошенного travis ci build?
- 25. Travis Build Fail on Jekyll Project - не может найти Джекил?
- 26. Travis CI Build не устанавливает драгоценные камни для платформы JRuby
- 27. Travis-CI Auto-Tag Build для GitHub Release
- 28. исключить файлы из запуска travis ci build on github
- 29. Travis-CI build не начинается вообще при запросе на изгиб
- 30. Как работает дроссель travis-ci.org?
Вы можете использовать его [в качестве дополнения для интерфейса CLI] (https://github.com/travis-ci/travis-build#use-as-addon-for-cli) aka 'Travis.rb 'by' git clone'ing repo в '~/.travis/travis-build' (CD =' ~/.travis' при клонировании) –
@ набиячлэвэлиь Это не работает. Я действительно делал «cd ~/.travis && git clone [email protected]: travis-ci/travis-build.git && cd ~/dev/root && travis build', но он все еще говорит« неизвестная сборка команд ». – l0b0