travis-ci

How can I start and stop a background task on travis?

浪子不回头ぞ 提交于 2021-02-19 01:35:36
问题 I need to start and restart a custom web server on travis. Starting in background is fine using a sub-shell ( .travis.yml ): - if [ "$TEST_ADAPTER" = "HTTP" ]; then (vendor/bin/httpd.php start &); fi To stop/kill the process again I'm trying to get its PID and then kill it: - if [ "$TEST_ADAPTER" = "HTTP" ]; then (vendor/bin/httpd.php start &) && SERVER_PID=$!; fi - ... - if [ "$TEST_ADAPTER" = "HTTP" ]; then kill -9 $SERVER_PID && ...; fi However, SERVER_PID is empty. What is the right way

Is there a way to start android emulator in Travis CI build?

♀尐吖头ヾ 提交于 2021-02-18 12:26:26
问题 I have python wrapper-library for adb where I have unit-test which depend on emulator or real device (since they execute adb commands). I want also to use Travis CI as build environment along with executing those unit tests for each build. Is there a way to have android emulator available somewhow in Travis CI, so that unit tests can execute adb commands? Thanks in advance! 回答1: According to the Travis CI documentation, you can start an emulator with the following script in your .travis.yml :

travis with pytest-qt fails without exiting nor creating QmessageBox

▼魔方 西西 提交于 2021-02-17 03:57:52
问题 The context I try to create an integration test for an graphical user interface (GUI) written with Qt5 through python3 (so using pyqt5 ). And I use pytest with the plugging pytest-qt to test the GUI. I test the GUI which here is largely inspired from this question, so the command pytest -v -s runs well. Since my repository is on Github , I use Travis-CI to perform my integration tests. The error However when I push on Github and so I launch the Travis tests I get at some point the following

How would I use Travis to automatically update a Github repo with result of build?

不羁的心 提交于 2021-02-17 02:29:28
问题 My real need is somewhat more complicated, but I think this simplification captures the essence: What I would like to do is, on every GitHub check-in, if the rest of the Travis build succeeds, to create an artifact from the code (a minified version of the JavaScript that makes up the main source code.) Then of course, I want Travis to check that back into GitHub. I haven't tried this yet, because I see an immediate problem: an infinite loop. If Travis checks this into GitHub, then of course

Set up CI with Travis for .NET Core

为君一笑 提交于 2021-02-11 17:11:49
问题 I'm trying to set up a CI for my .NET Core 3.1 class library. I created an account at https://travis-ci.org/github and selected my repository containing the code for my class library for a CI build. Travis is successfully watching my master branch for commits, but I cannot get the CI build to succeed. My repository: https://github.com/MintPlayer/MintPlayer.AspNetCore.SitemapXml Target framework: .NET Core 3.1 My latest .travis.yml file: language: csharp mono: none dotnet: 3.1.302 script: -

Travis uses Firefox 56 although Firefox 59 is installed on same system

余生颓废 提交于 2021-02-10 18:10:31
问题 When running Selenium on Travis, it uses Firefox version 56. I need to use the latest version of Firefox, 59. Running apt-get update and upgrade does not solve this problem, but instead leaves the system with two different versions of Firefox, both 56 and 59. $ which firefox /usr/local/bin/firefox $ firefox --version Mozilla Firefox 56.0.2 but $ /usr/bin/firefox --version Mozilla Firefox 59.0.2 Anyone knows how to resolve this so that Firefox 59 is the only version available on the system?

Travis uses Firefox 56 although Firefox 59 is installed on same system

ぐ巨炮叔叔 提交于 2021-02-10 18:00:18
问题 When running Selenium on Travis, it uses Firefox version 56. I need to use the latest version of Firefox, 59. Running apt-get update and upgrade does not solve this problem, but instead leaves the system with two different versions of Firefox, both 56 and 59. $ which firefox /usr/local/bin/firefox $ firefox --version Mozilla Firefox 56.0.2 but $ /usr/bin/firefox --version Mozilla Firefox 59.0.2 Anyone knows how to resolve this so that Firefox 59 is the only version available on the system?

Hugo Automation with Travis-ci and Github pages

时间秒杀一切 提交于 2021-02-08 04:54:21
问题 I am using github to host my blog and use the static site Generator HUGO to make it possible but its too tedious to make it offline and compile it then upload the public folder to gh-pages or make it available in docs folder. So i wanted to automate the process so whenever i create a new .md file in content it should generate the static site and copy the public folder to gh-pages or the following combination - Source files in "source" branch and content of "public" published to master [for

Cross-platform install of npm package sqlite3

血红的双手。 提交于 2021-02-07 13:42:13
问题 Question Is there a way to install node-sqlite3 for multiple platforms I am targeting in my app without running standalone build for just every target platform combination? Context In my Node.js app I have a npm dependency node-sqlite3 (GitHub, npm), which contains different binaries (bindings) for different platforms. My app is targeting different platforms, including Windows , Linux and macOS (both ia32 and x64 ) and modern Node versions: v6, v7 and v8. The app doesn't have any platform

Travis CI not using extra Maven repository provided in pom.xml

非 Y 不嫁゛ 提交于 2021-02-07 05:44:14
问题 I have a Java-based GitHub project, fitnessjiffy-spring (I'm currently focused on the "bootstrap" branch). It depends on a library built from another GitHib project, fitnessjiff-etl. I am trying to configure both of these to be built by Travis CI. Unfortunately, Travis is not as sophisticated as Jenkins or Hudson in dealing with Maven-based Java projects. Jenkins can easily handle dependencies between projects, but the same concept doesn't seem to exist with Travis. If one project depends on