travis-ci

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

心不动则不痛 提交于 2021-02-07 05:44:04
问题 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

How do I deploy nuget packages in Travis CI?

无人久伴 提交于 2021-02-06 10:21:36
问题 I have a nuget package that runs Travis CI for its builds. Here is my yml: language: csharp solution: TreasureGen.sln install: - nuget restore TreasureGen.sln - nuget install NUnit.Runners -OutputDirectory testrunner script: - xbuild TreasureGen.sln /p:TargetFrameworkVersion="v4.5" /p:Configuration=Stress - mono ./testrunner/NUnit.ConsoleRunner.*/tools/nunit3-console.exe ./TreasureGen.Tests.Unit/bin/Stress/TreasureGen.Tests.Unit.dll - mono ./testrunner/NUnit.ConsoleRunner.*/tools/nunit3

Cache docker images on Travis CI

眉间皱痕 提交于 2021-02-06 02:34:49
问题 Is it possible to cache docker images on Travis CI? Attempting to cache the /var/lib/docker/aufs/diff folder and /var/lib/docker/repositories-aufs file with cache.directories in the travis.yml doesn't seem to work since they require root. 回答1: From a Docker perspective, I think the best way you could do this (without the possibility of running a network local registry) is save the Docker image and cache the exported tar ball. You would need to load that at the start rather than pull an image.

Cache docker images on Travis CI

情到浓时终转凉″ 提交于 2021-02-06 02:31:56
问题 Is it possible to cache docker images on Travis CI? Attempting to cache the /var/lib/docker/aufs/diff folder and /var/lib/docker/repositories-aufs file with cache.directories in the travis.yml doesn't seem to work since they require root. 回答1: From a Docker perspective, I think the best way you could do this (without the possibility of running a network local registry) is save the Docker image and cache the exported tar ball. You would need to load that at the start rather than pull an image.

Cache docker images on Travis CI

我们两清 提交于 2021-02-06 02:31:32
问题 Is it possible to cache docker images on Travis CI? Attempting to cache the /var/lib/docker/aufs/diff folder and /var/lib/docker/repositories-aufs file with cache.directories in the travis.yml doesn't seem to work since they require root. 回答1: From a Docker perspective, I think the best way you could do this (without the possibility of running a network local registry) is save the Docker image and cache the exported tar ball. You would need to load that at the start rather than pull an image.

Angular unit tests fail, but not locally

 ̄綄美尐妖づ 提交于 2021-02-05 06:13:08
问题 After upgrading to Angular version 11, unit tests now fail on Travis CI. Locally they do succeed (even after clean install with the same node, nvm and npm versions). The error for all unit tests is the same - Failed: fn.bind is not a function TypeError: fn.bind is not a function at newTrustedFunctionForJIT (node_modules/@angular/compiler/fesm2015/compiler.js:6845:1) at JitEvaluator.evaluateCode (node_modules/@angular/compiler/fesm2015/compiler.js:6909:1) at JitEvaluator.evaluateStatements

Springboot HttpMessageNotWritableException: No converter for […] with preset Content-Type 'null']

只谈情不闲聊 提交于 2021-01-28 23:32:55
问题 I try create web API with XML and JSON with Springboot 2.2.4.RELEASE + JDK11 and java 8 compilation. my model: @XmlRootElement public class DataModel { private List<String> columns; private List<Row> rows; public List<String> getColumns() { return columns; } public void setColumns(List<String> columns) { this.columns = columns; } public List<Row> getRows() { return rows; } public void setRows(List<Row> rows) { this.rows = rows; } } my controller: @RequestMapping(value = "/{model}/columns",

Springboot HttpMessageNotWritableException: No converter for […] with preset Content-Type 'null']

一个人想着一个人 提交于 2021-01-28 23:27:01
问题 I try create web API with XML and JSON with Springboot 2.2.4.RELEASE + JDK11 and java 8 compilation. my model: @XmlRootElement public class DataModel { private List<String> columns; private List<Row> rows; public List<String> getColumns() { return columns; } public void setColumns(List<String> columns) { this.columns = columns; } public List<Row> getRows() { return rows; } public void setRows(List<Row> rows) { this.rows = rows; } } my controller: @RequestMapping(value = "/{model}/columns",

Springboot HttpMessageNotWritableException: No converter for […] with preset Content-Type 'null']

纵饮孤独 提交于 2021-01-28 22:27:50
问题 I try create web API with XML and JSON with Springboot 2.2.4.RELEASE + JDK11 and java 8 compilation. my model: @XmlRootElement public class DataModel { private List<String> columns; private List<Row> rows; public List<String> getColumns() { return columns; } public void setColumns(List<String> columns) { this.columns = columns; } public List<Row> getRows() { return rows; } public void setRows(List<Row> rows) { this.rows = rows; } } my controller: @RequestMapping(value = "/{model}/columns",

Travis CI: error when installing rpy2

牧云@^-^@ 提交于 2021-01-27 12:01:00
问题 I am developing a python package that depends on rpy2 . I would like to run test with Travis CI. In .travis.yml I install conda and run tests with green : language: python # Be strict when checking our package warnings_are_errors: true # command to install dependencies install: # http://conda.pydata.org/docs/travis.html - wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; - bash miniconda.sh -b -p $HOME/miniconda - export PATH="$HOME/miniconda/bin:$PATH