travis-ci

spring boot application to test with travis and deploy on Google Cloud

倖福魔咒の 提交于 2019-12-13 17:44:07
问题 Recently I ran my Spring Boot code into the Google Cloud platform. Now I want to introduce TRAVIS CI to my source code but I cant deploy it on Google Cloud because I receive the following error: Step #0: Pulling image: gcr.io/gcp-runtimes/java/runtime-builder@sha256:abe30c228acd8514d83430452b5a45eedea568b55d02d4ddaa2a374b1b086dd8 Step #0: sha256:abe30c228acd8514d83430452b5a45eedea568b55d02d4ddaa2a374b1b086dd8: Pulling from gcp-runtimes/java/runtime-builder Step #0: Digest: sha256

How to build and run unit test Visual Studio 2017 ASP.net .NETCoreApp Version 1.1 on linux using travis-ci

本秂侑毒 提交于 2019-12-13 17:40:56
问题 I get an error when dotnet restore ./solution.sln is called on travis-ci. error MSB4019: The imported project "/usr/share/dotnet/sdk/1.0.4/Sdks/Microsoft.Docker.Sdk/Sdk/Sdk.props" was not found. my .travis.yml language: csharp dotnet: 1.0.4 mono: none dist: trusty env: DOTNETCORE=1 # optional, can be used to take different code paths in your script install: - dotnet restore ./solution.sln --verbosity detailed script: - dotnet test --configuration Release --verbosity detailed How can I fix it?

Pushing on a Git repository with Travis-CI

折月煮酒 提交于 2019-12-13 15:33:05
问题 I want to execute a script every time I push into the master, this script will create some files that I want to commit and push. The log of the Travis build seems to be adding the files, committing and pushing, but nothing happens. My .travis.yml is this one: before_install: - openssl aes-256-cbc -K $encrypted_290c3b2c061d_key -iv $encrypted_290c3b2c061d_iv -in id_rsa.enc -out /tmp/id_rsa -d - eval "$(ssh-agent -s)" # Start the ssh agent - chmod 600 /tmp/id_rsa - ssh-add /tmp/id_rsa install:

Disable apache.http.wire DEBUG logs

ぐ巨炮叔叔 提交于 2019-12-13 15:27:07
问题 I'm using Travis CI with my github repo(java project). One of my tests gets data from Dbpedia using SPARQL and Jena. It causes many records i get to be printed in the log into Travis output and thus Travis fails. A log example for instance: 14:52:58.756 [main] DEBUG org.apache.http.wire - http-outgoing-1 << " { "pname": { "type": "literal", "xml:lang": "en", "value": "Yuen Poovarawan" }[0x9], "photo": { "type": "uri", "value": "http://commons.wikimedia.org /wiki/Special:FilePath/Yuen

False positives: junit.framework.AssertionFailedError: EditText is not found

时光总嘲笑我的痴心妄想 提交于 2019-12-13 14:24:18
问题 I have a problem setting up Robotium tests to run on Travis without random false posivities. Every couple of builds I get pl.mg6.agrtt.TestActivityTests > testCanEnterTextAndPressButton[test(AVD) - 4.4.2] FAILED junit.framework.AssertionFailedError: EditText is not found! at com.robotium.solo.Waiter.waitForAndGetView(Waiter.java:540) on all my tests. I have created a simple project on GitHub to show the issue. You may see how it builds on Travis. Note build #7 failed after modyfing unrelated

Code::Blocks build from bash

大城市里の小女人 提交于 2019-12-13 08:52:18
问题 I'm developing a C++ application in Code::Blocks. My program has a few dependencies and has to run under Linux and Windows, this is why I use Code::Blocks. Now I'd like to include Travis CI for testing the builds. On the Travis server, where I have no X11, I won't be able to run Code::Blocks. How can I build my project without Code::Blocks. (Is there a possibility to create "a Makefile" out of the .cbp -file? This page (Code::Blocks Wiki) mentions there is a --build flag, but you need Code:

Imports in vanilla/pure JS testing with protractor and relative paths

不问归期 提交于 2019-12-13 05:36:45
问题 Until now, I was testing my non-Angular website (I only have JS, no node, not even ES6) using Jasmine, Karma and Travis CI. I am now trying to write functional tests (in case my vocabulary is off, I mean scenario tests for which I want to test "visual/UI" tests) and google directed me to Protractor. Importing For now, I will completely disregard Travis CI . The only way I have found to "reach" my page was with a local path browser.get('file:///C:/local/path/to/project/index.html'); For now, I

Travis CI cannot connect to http://develop.svn.wordpress.org/trunk/tests/phpunit/includes/

余生颓废 提交于 2019-12-13 05:08:20
问题 I am running the command in Travis CI: svn co --quiet http://develop.svn.wordpress.org/trunk/tests/phpunit/includes/ /tmp/wordpress-tests-lib/includes but it failed with this message: svn: OPTIONS of 'http://develop.svn.wordpress.org/trunk/tests/phpunit/includes': could not connect to server (http://develop.svn.wordpress.org) You can see example in this build This command worked before, just before couple of days with the same build. see this successful build for example - line 131. What can

how to use remote packages on travis-ci | GO

≯℡__Kan透↙ 提交于 2019-12-13 04:41:34
问题 when I run a go script ( go run example.go ) I get this error /home/travis/.gvm/gos/go1.1.2/src/pkg/github.com/user/examplepackage (from $GOROOT) /home/travis/.gvm/pkgsets/go1.1.2/global/src/github.com/user/examplepackage (from $GOPATH) example.go imports a package using import "github.com/user/examplepackage" The travis.yml file looks like : install: - go get ... before_script: - go run example.go travis-ci team doesn't know to install and configure GOPATH and GOROOT ? 回答1: You should add

Testing REST api built using Node.js(Express) on Travis CI

喜欢而已 提交于 2019-12-13 01:26:25
问题 I want to test the rest api service i created using Express framework and MongoDb on Travis CI. The test works locally on my machine but fails on Travis CI. I'm guessing the problem is with my .travis.yml and package.json. Here is how i run my test locally: // opens mongodb database on port 27017 mongod // reads the db and returns documents depending on the request node express.js // test CRUD operations on the app mocha express.test.js How can i do the same on travis CI? Here is my app https