Tag: travis ci

如何在使用NightwatchtestingNode.js项目时在Travis CI上运行Selenium Server

我有一个node.js项目 ,我正在尝试使用Nightwatch进行testing。 守夜服务器使用selenium服务器。 我的testing在本地正常工作,但是在Travis上它立即窒息了这个错误 : 启动Selenium服务器时发生错误: 线程“main”中的exceptionjava.lang.UnsupportedClassVersionError:org / openqa / grid / selenium / GridLauncherV3:不支持的major.minor版本52.0 我认为这意味着它想要Java 8或更新,但我不知道如何设置在Travis上。 我尝试在我的travis.yml中设置jdk: oracle8jdk ,但是这似乎没有什么区别。 (也许这只适用于Javatesting?) 有什么build议么?

Travis CI作业失败,结果未知“已configuration”

这是我的.travis.yml language: node_js node_js: – 0.8 before_script: – export DISPLAY=:99.0 – sh -e /etc/init.d/xvfb start 简单地得到: Using worker: worker-linux-2-1.bb.travis-ci.org:travis-linux-19 An error occured while compiling the build script : unknown result "configured"

testingTravis上的树莓派代码

我正在使用pi-gpio节点模块来编程我的Raspberry Pi。 我想在Travis上testing我的代码。 我发现这篇文章解释了如何在Travis上build立一个虚拟ARM机器: http : //www.tomaz.me/2013/12/02/running-travis-ci-tests-on-arm.html (I仍然没有得到它的工作:它加载pi-gpio失败,但这可能是我的错。) 自2013年以来有所改变? 有没有更简单的方法来testing我的NodeJS代码在Travis-ci上?

指定特定testing的节点版本

如果节点版本大于x,是否可以在package.json的test指定运行某个testing? 目前,我正在使用摩卡咖啡和我的脚本如下所示: if [node –version > '0.10'] then mocha –harmony ./tests/koa/*.js else mocha ./tests/*.js 我发现似乎可以使用if语句,但是使用上面的语句只是给了我一个错误:– –version was unexpected at this time.

特拉维斯CI超时节点茉莉花testing,但通过本地

我一直在一个命令行应用程序的节点,做一些文件系统读取和表示应用程序的东西,所有我的testing本地通过,但是特拉维斯似乎有一个问题时,build设(超时,这是一个茉莉花节点事情)。 这是我得到的 .travis.yml language: node_js node_js: – '>=0.10' before_script: – npm install -g grunt-cli – npm link script: – "grunt –verbose" sickmerge_spec.js // Set the test environment process.env.NODE_ENV = 'test'; // Dependencies var exec = require('child_process').exec, fs = require('fs'), version = require('../package.json').version, request = require('request'); // Helper function to exectue the sickmerge cli function execSickmerge […]

Travis CIcaching:忽略来自caching的特定文件夹/文件

我在.travis.yml有以下configuration: language: node_js node_js: – '5.0.0' sudo: false cache: bundler: true directories: – node_modules 我的一个软件包是一个Github分支,内容改变但版本保持不变。 发生什么事情是caching不失效,在这一点上没有任何错误。 但是我想知道是否有一种方法可以从caching构造中排除一个特定的文件夹,如下所示: language: node_js node_js: – '5.0.0' sudo: false cache: bundler: true directories: – node_modules – !node_modules/grommet 其中!node_modules/grommet将被从caching索引中排除。 我尝试使用before_cache ,如此处所述。 但没有运气。 任何帮助赞赏…

当testing失败时,TravisCI并没有失败

我有用 JavaScript编写的testing,我使用TravisCI进行testing。 build立 我的package.json是这样的: "scripts": { "test": "node testsRunner.js" } 而我的.travis.yml是: language: node_js node_js: – '0.12.7' 'testsRunner.js'是: var nodeunit = require('nodeunit'); var path = require('path'); nodeunit.reporters.default.run([ path.join(__dirname, 'suite1/test.js') ]); 而suite1/test.js最后是: module.exports = { setUp: function(callback) { // Initialization code… callback(); }, tearDown: function(callback) { // Cleanup… callback(); }, test1: function(test) { test.expect(10); // This test […]

在Travis中运行节点应用程序

我目前正在构build一个节点js的服务器端应用程序。 为了testing它,我使用Travis, 默认运行npmtesting 。 现在我也想testing依赖关系是否正确,因此在Travis中启动应用程序 nodejs app.js 我如何在Travis中执行这个任务?

Travis CI是否支持PhoneGap应用程序?

我刚刚在Visual Studio 2015中创build了一个离子(它是带有angularjs的PhoneGap)应用程序。我在GitHub上保存了代码,并且想用Travis CI来构build它。 根据文档 ,可以使用C#和JAVASCRIPT(WITH NODE.JS)。 所以如果我得到corect它理解.sln文件,并可以使用npm。 但我不知道如何使其工作。 我的问题是:是否有可能与Travis CI构buildPhoneGap应用程序?

为什么具有真正Headless选项的Chrome 59-Beta无法使用量angular器?

我想用最新的Chrome 59-Beta和–headless Option来testing我们的Angular Project(github .com / h-da / geli)。 我能够使用新的GC-Beta的karma ,但是我不能用新的GC-Beta来运行protractor 。 我试图在jenkins和我的当地stream浪者机器上运行量angular器,都给了我同样的错误: [17:13:12] I/direct – Using ChromeDriver directly… [17:14:12] E/launcher – chrome not reachable (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.4.0-51-generic x86_64) [17:14:12] E/launcher – WebDriverError: chrome not reachable (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.4.0-51-generic x86_64) at Object.checkLegacyResponse (/home/travis/build/[secure]/geli/app/webFrontend/node_modules/selenium-webdriver/lib/error.js:505:15) at parseHttpResponse (/home/travis/build/[secure]/geli/app/webFrontend/node_modules/selenium-webdriver/lib/http.js:509:13) at doSend.then.response (/home/travis/build/[secure]/geli/app/webFrontend/node_modules/selenium-webdriver/lib/http.js:440:13) at process._tickCallback […]