提交 1f790493 编写于 作者: P Piotr Bryk

Merge pull request #359 from bryk/sauce-fix

Fix travis setup for pull requests from form
......@@ -36,6 +36,14 @@ addons:
username: k8s-dashboard-ci
access_key: "18b7e71b-60e9-4177-9a7f-e769977dbb39"
before_script:
# Prepare environment for the Chrome browser. This is required for PRs from forks where
# tests do not run on Saucelabs.
# TODO(bryk): Make tests run only on Saucelabs.
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Docker is required to set up a simple, single node Kubernetes cluster.
# Local Docker-based cluster is the simplest way to create kubernetes on the host machine.
services:
......
......@@ -65,7 +65,7 @@ function createConfig() {
];
} else {
config.capabilities = {'browserName': 'chrome'};
config.capabilities = {'browserName': 'firefox'};
}
return config;
......
......@@ -138,7 +138,8 @@ gulp.task('integration-test:prod', ['serve:prod', 'webdriver-update'], runProtra
* Runs application integration tests. Uses production version of the application.
*/
gulp.task(
'local-cluster-integration-test:prod', ['serve:prod', 'local-up-cluster'], runProtractorTests);
'local-cluster-integration-test:prod', ['serve:prod', 'local-up-cluster', 'webdriver-update'],
runProtractorTests);
/**
* Downloads and updates webdriver. Required to keep it up to date.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册