travis-ci

What is the “repository ID” discussed in the Travis-CI API?

萝らか妹 提交于 2020-01-02 04:35:09
问题 To get a list of builds using the TravisCI API described here, it says that you need to put the repository ID in the request address. I'm wondering, what is this ID, and where do I find it? Does it differ from the repository slug, which is username/reponame? 回答1: The repository ID is the repo key which is shown in Travis CI API responses. This can be either retrieve by: $ curl -L http://api.travis-ci.org/repos/user_name/repo_name or if you've travis command installed, try: $ travis show -r

How do you merge into another branch using travis with git commands?

让人想犯罪 __ 提交于 2020-01-02 04:05:24
问题 I am trying to add a feature to my devstack to add auto deploy when a travis test passes on a branch called travis . After this test passes, I want to merge this travis branch into master branch and push to the master branch. So far, when I push to travis branch, travis runs the test and everything succeeds but I am having problems with my git commands in after_success in my travis.yml file. travis.yml - "npm i -g jasmine-node" -after_success: - "git fetch" - "git checkout master" - "git

undefined reference to `std::__cxx11::basic_string in Boost on Travis CI

时间秒杀一切 提交于 2020-01-01 19:42:16
问题 I am trying to get a C+++ project which uses Boost on GitHub to compile correctly on Travis CI. First I tried the packages and PPAs on ubuntu, but they were too old(I need at least Boost 1.61). I got it to work only if I compiled Boost on Travis CI(download, compile), but, unfortunately, the compile time is big (11-18 mins) and the log file is just huge. Thinking how to get over this issues, I thinked about compiling boost on my machine, zipping, uploading to some web server and just

Travis CI: PHP 7.2 don't support Argon2i

匆匆过客 提交于 2020-01-01 19:18:09
问题 I've an error in my project with Travis CI: Argon2i algorithm is not supported. Please install the libsodium extension or upgrade to PHP 7.2+. But, Argon2i is present in the PHP 7.2 version and Travis CI install the PHP 7.2 version: $ phpenv global 7.2 2>/dev/null 7.2 is not pre-installed; installing Downloading archive: https://s3.amazonaws.com/travis-php-archives/binaries/ubuntu/14.04/x86_64/php-7.2.tar.bz2 $ curl -s -o archive.tar.bz2 $archive_url && tar xjf archive.tar.bz2 --directory / $

GitHub and Travis CI - How to fail build when tests fail

二次信任 提交于 2020-01-01 19:07:46
问题 I have a Scala project on GitHub and I use the Travis CI to build it and show the resulting badge on the project home in GitHub. I started to write unit tests and I realized that during one of my commit, some tests failed. But the travis build shows that the build passes. I know that I should be using some kind of hook to check for tests failures and correspondingly fail my build. But I just don't know what the correct command for that is? I could not as well infer this from any documentation

Is it possible to start a Selenium server inside Travis?

无人久伴 提交于 2020-01-01 12:36:28
问题 I want to run a complete Selenium test within Travis, but I seem unable to get the server started. My Travis YAML file language: node_js node_js: - "6.2" before_script: - npm install selenium-standalone@latest -g - selenium-standalone install - npm install -g gulp - nohup selenium-standalone start > selenium.txt 2>&1 </dev/null & script: - npm test - gulp When npm test runs, the result is: Error retrieving a new session from the selenium server Error: connect ECONNREFUSED 127.0.0.1:4444 at

Install Latest Version of Firefox on Travis And Run with Protractor

隐身守侯 提交于 2020-01-01 12:23:21
问题 Travis installs Firefox 31.0esr by default, but we want to always use the latest version. The reference here says it should be pretty straight forward, but it doesn't seem to actually install, rather it just seems to download the tar file. Protractor still uses Firefox version 31.0esr when it runs. travis.yml addons: firefox: "latest" protractor.conf.js capabilities: { 'browserName': 'firefox' } Logs: Initial Firefox install still happens: [34m[1mInstalled Firefox version[0m firefox 31.0esr .

How to install Google Cloud SDK on Travis?

僤鯓⒐⒋嵵緔 提交于 2020-01-01 05:17:07
问题 I have tried to install Google Cloud SDK on Travis with the following .travis.yml sudo: required language: go - curl https://sdk.cloud.google.com | bash; My attempt is inspired by this guide from Google: https://cloud.google.com/solutions/continuous-delivery-with-travis-ci Unfortunately, I get this output on Travis: $ curl https://sdk.cloud.google.com | bash; % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 421 0 421 0 0 17820 0 --:--:--

How to make Travis CI test package for Linux, OS X, Windows?

旧街凉风 提交于 2019-12-31 09:12:10
问题 Is there a way to tell Travis CI (or another continuous integration service) to test the package on different operating systems? Working with the filesystem, and it would be great to double-check it's all platform-agnostic. 回答1: Update 3 Windows support has been released! You can now use Travis CI with Linux, macOS, and Windows. You can find their blog post about it here. Update 2 This feature is enabled now (no need to send request to Travis team). Though still considered beta: Multi-OS