travis-ci

Travis CI fails with Child module … does not exist

江枫思渺然 提交于 2019-12-24 11:23:20
问题 My git repository structure is as following: -my-repo -.mvn -.travis.yml -my-parent-project -child-module -pom.xml -pom.xml Where the parent pom includes <modules> <module>child-module</module> </modules> And my .travis.yml looks like: sudo: true language: java jdk: oraclejdk9 os: linux before_install: - chmod +x ./my-project-parent/* - cd my-project-parent install: true script: ./mvnw clean install cache: directories: - $HOME/.m2 When Travis CI build runs I'm getting: [ERROR] The project io

Preparing for CRAN: '-fopenmp' clang error?

早过忘川 提交于 2019-12-24 09:58:32
问题 I am preparing a package (which makes use of Rcpp and RcppArmadillo) for submission to CRAN. I am using Travis CI and I have included the following to test my package more thoroughly: os: - linux - osx compiler: - clang - gcc This, however, yields the (familiar, it seems) error when using clang on OS X * installing *source* package ‘my_pkg’ ... ** libs clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I"/Users/travis/R/Library/Rcpp/include" -I"/Users/travis/R/Library

Travis CI skipping SonarQube analysis

独自空忆成欢 提交于 2019-12-24 09:00:42
问题 I'm trying to configure SonarQube analysis in a github project. I've followed the official travis ci documentation but SonarQube analysis is not performed. I'm getting the following message: "Skipping SonarQube Scan because it is not running in a secure environment" pull request link: https://github.com/zakshya/cronos/pull/4 Full build log: https://s3.amazonaws.com/archive.travis-ci.org/jobs/216125526/log.txt Does some one encountered this problem ? I'm i missing some config ? 回答1: As

Using my package throws ModuleNotFoundError: No module named 'my-package' in Travis

被刻印的时光 ゝ 提交于 2019-12-24 06:51:08
问题 I am trying to use Travis CI for continuous integration but have been dealing with a lot of issues since it is my first time with Travis. Lately, I am running in to the following build fail: ModuleNotFoundError: No module named 'my-package' Which happens when in the following line of code in my db.py file: import importlib db_conf = importlib.import_module("my-package.conf.db_conf") I should mention that I am using importlib since my repository has dashes in its name and based on suggestion

Is it possible to make an Objective-C project (no UI, no simulator) to be tested on Travis (travis-ci.org)?

帅比萌擦擦* 提交于 2019-12-24 06:38:14
问题 I wonder if it is possible to make an Objective-C project (no UI, no simulator is needed, hosted on Github) to be built on Travis? Current Travis docs seems not to contain any information regarding the option to have Objective-C projects built on Travis. But Building a C Project says that: Travis VMs are 32 bit and currently provide gcc 4.6 clang 3.1 core GNU build toolchain (autotools, make), cmake, scons and that default test script is run like ./configure && make && make test So, to

Travis CI: The command “bundle exec rake” exited with 1

一个人想着一个人 提交于 2019-12-24 05:34:05
问题 I am having a problem with my Travis build where the build fails with the error The command "bundle exec rake" exited with 1 . Here is the build log from Travis. Here is a link to the GitHub repo. I've tried adding require 'bundler' to my Rakefile as suggested by this question, but that didn't have any effect. I have no problems running bundle exec rake on my local machine and all tests are passing locally. Here is the backtrace from Travis: /home/travis/build/danielbonnell/app/vendor/bundle

Error fetching public key while encrypting environment variable for Travis CI

穿精又带淫゛_ 提交于 2019-12-24 03:06:14
问题 I'm using travis (0.0.6) and I get the same error as described in Add secret environment variable to Travis CI: [bdu-padrino (master)]$ travis encrypt mariusbutuc/bdu-padrino MY_SECRET_ENV=super_secret About to encrypt 'MY_SECRET_ENV=super_secret' for 'mariusbutuc/bdu-padrino' There was an error while fetching public key, please check if you entered correct slug even after editing lib/travis/cli/secure_key.rb to use either https or http URL to retrieve the public key, either skip the SSL

R Package checking package dependencies ERROR in Travis-ci

情到浓时终转凉″ 提交于 2019-12-24 01:56:19
问题 My package passes local tests with devtools::check(), but fails to build with Travis (https://travis-ci.org/mjockers/syuzhet). Travis reports a "checking package dependencies ... ERROR" because the openNLP Package is required but not available. What is the trick to making the package available to Travis? Package is here: https://github.com/mjockers/syuzhet 回答1: I needed to update my .travis.yml file to load java, which the openNLP package requires. I updated .travis.yml by adding language:

R Package checking package dependencies ERROR in Travis-ci

拥有回忆 提交于 2019-12-24 01:56:05
问题 My package passes local tests with devtools::check(), but fails to build with Travis (https://travis-ci.org/mjockers/syuzhet). Travis reports a "checking package dependencies ... ERROR" because the openNLP Package is required but not available. What is the trick to making the package available to Travis? Package is here: https://github.com/mjockers/syuzhet 回答1: I needed to update my .travis.yml file to load java, which the openNLP package requires. I updated .travis.yml by adding language:

Is it possible to run the deployment phase even when a Travis build fail?

谁说我不能喝 提交于 2019-12-24 00:16:01
问题 Is it possible to run the deployment phase in Travis CI even when the build is reporting a failure? 回答1: No. Deployment does not happen if the script fails. If you want to execute a block of code regardless of the result, use after_script and a custom script. https://docs.travis-ci.com/user/deployment/custom/ describes how to deploy with after_success , but the idea is the same. 来源: https://stackoverflow.com/questions/38916480/is-it-possible-to-run-the-deployment-phase-even-when-a-travis