mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Merge branch 'master' into name-collision
This commit is contained in:
+12
-5
@@ -16,7 +16,9 @@ integration_job: &integration_job
|
|||||||
environment:
|
environment:
|
||||||
<<: *integration_environment
|
<<: *integration_environment
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:8-browsers
|
# TODO: replace with node:8-browsers when build issues are resolved.
|
||||||
|
# - image: circleci/node:8-browsers
|
||||||
|
- image: coralproject/ci
|
||||||
- image: circleci/mongo:3
|
- image: circleci/mongo:3
|
||||||
- image: circleci/redis:4-alpine
|
- image: circleci/redis:4-alpine
|
||||||
steps:
|
steps:
|
||||||
@@ -32,6 +34,10 @@ integration_job: &integration_job
|
|||||||
- store_test_results:
|
- store_test_results:
|
||||||
when: always
|
when: always
|
||||||
path: /tmp/circleci-test-results
|
path: /tmp/circleci-test-results
|
||||||
|
- store_artifacts:
|
||||||
|
when: always
|
||||||
|
path: /tmp/circleci-test-results
|
||||||
|
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
@@ -239,10 +245,11 @@ workflows:
|
|||||||
<<: *filter_develop
|
<<: *filter_develop
|
||||||
requires:
|
requires:
|
||||||
- build_assets
|
- build_assets
|
||||||
- test_integration_firefox_local:
|
# TODO: uncomment when more reliable
|
||||||
<<: *filter_develop
|
# - test_integration_firefox_local:
|
||||||
requires:
|
# <<: *filter_develop
|
||||||
- build_assets
|
# requires:
|
||||||
|
# - build_assets
|
||||||
deploy-tagged:
|
deploy-tagged:
|
||||||
jobs:
|
jobs:
|
||||||
- npm_dependencies:
|
- npm_dependencies:
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ if [[ "$BROWSERSTACK" == "true" && -n "$BROWSERSTACK_KEY" ]]; then
|
|||||||
echo Testing on browserstack
|
echo Testing on browserstack
|
||||||
node scripts/e2e.js --reports-folder "$REPORTS_FOLDER" --retries "$E2E_MAX_RETRIES" --timeout "$E2E_WAIT_FOR_TIMEOUT" --browsers "$E2E_BROWSERS" --browserstack
|
node scripts/e2e.js --reports-folder "$REPORTS_FOLDER" --retries "$E2E_MAX_RETRIES" --timeout "$E2E_WAIT_FOR_TIMEOUT" --browsers "$E2E_BROWSERS" --browserstack
|
||||||
else
|
else
|
||||||
# When browserstack is not available test locally using chrome headless.
|
# When browserstack is not available test locally.
|
||||||
echo Testing locally
|
echo Testing locally
|
||||||
node scripts/e2e.js --reports-folder "$REPORTS_FOLDER" --retries "$E2E_MAX_RETRIES" --timeout "$E2E_WAIT_FOR_TIMEOUT" --browsers "$E2E_BROWSERS" --headless
|
node scripts/e2e.js --reports-folder "$REPORTS_FOLDER" --retries "$E2E_MAX_RETRIES" --timeout "$E2E_WAIT_FOR_TIMEOUT" --browsers "$E2E_BROWSERS" --headless
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
const { ROOT_URL } = require('./config');
|
const { ROOT_URL } = require('./config');
|
||||||
|
|
||||||
|
const REPORTS_FOLDER = process.env.REPORTS_FOLDER || './test/e2e/reports';
|
||||||
|
|
||||||
const nightwatch_config = {
|
const nightwatch_config = {
|
||||||
src_folders: './test/e2e/specs/',
|
src_folders: './test/e2e/specs/',
|
||||||
output_folder: process.env.REPORTS_FOLDER || './test/e2e/reports',
|
output_folder: REPORTS_FOLDER,
|
||||||
page_objects_path: './test/e2e/page_objects',
|
page_objects_path: './test/e2e/page_objects',
|
||||||
globals_path: './test/e2e/globals',
|
globals_path: './test/e2e/globals',
|
||||||
|
|
||||||
@@ -34,7 +36,7 @@ const nightwatch_config = {
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
on_failure: true,
|
on_failure: true,
|
||||||
on_error: true,
|
on_error: true,
|
||||||
path: process.env.REPORTS_FOLDER || './test/e2e/reports',
|
path: REPORTS_FOLDER,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
chrome: {
|
chrome: {
|
||||||
|
|||||||
+17
-5
@@ -1,15 +1,17 @@
|
|||||||
const { ROOT_URL } = require('./config');
|
const { ROOT_URL } = require('./config');
|
||||||
|
|
||||||
|
const REPORTS_FOLDER = process.env.REPORTS_FOLDER || './test/e2e/reports';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
src_folders: './test/e2e/specs/',
|
src_folders: './test/e2e/specs/',
|
||||||
output_folder: process.env.REPORTS_FOLDER || './test/e2e/reports',
|
output_folder: REPORTS_FOLDER,
|
||||||
page_objects_path: './test/e2e/page_objects',
|
page_objects_path: './test/e2e/page_objects',
|
||||||
globals_path: './test/e2e/globals',
|
globals_path: './test/e2e/globals',
|
||||||
selenium: {
|
selenium: {
|
||||||
start_process: true,
|
start_process: true,
|
||||||
server_path:
|
server_path:
|
||||||
'node_modules/selenium-standalone/.selenium/selenium-server/3.7.1-server.jar',
|
'node_modules/selenium-standalone/.selenium/selenium-server/3.7.1-server.jar',
|
||||||
log_path: './test/e2e/',
|
log_path: REPORTS_FOLDER,
|
||||||
host: '127.0.0.1',
|
host: '127.0.0.1',
|
||||||
port: 6666,
|
port: 6666,
|
||||||
cli_args: {
|
cli_args: {
|
||||||
@@ -26,7 +28,6 @@ module.exports = {
|
|||||||
selenium_host: 'localhost',
|
selenium_host: 'localhost',
|
||||||
silent: true,
|
silent: true,
|
||||||
desiredCapabilities: {
|
desiredCapabilities: {
|
||||||
browserName: 'chrome',
|
|
||||||
javascriptEnabled: true,
|
javascriptEnabled: true,
|
||||||
acceptSslCerts: true,
|
acceptSslCerts: true,
|
||||||
webStorageEnabled: true,
|
webStorageEnabled: true,
|
||||||
@@ -38,19 +39,30 @@ module.exports = {
|
|||||||
enabled: true,
|
enabled: true,
|
||||||
on_failure: true,
|
on_failure: true,
|
||||||
on_error: true,
|
on_error: true,
|
||||||
path: process.env.REPORTS_FOLDER || './test/e2e/reports',
|
path: REPORTS_FOLDER,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
chrome: {
|
||||||
|
desiredCapabilities: {
|
||||||
|
browserName: 'chrome',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
chrome: {},
|
|
||||||
'chrome-headless': {
|
'chrome-headless': {
|
||||||
desiredCapabilities: {
|
desiredCapabilities: {
|
||||||
|
browserName: 'chrome',
|
||||||
chromeOptions: {
|
chromeOptions: {
|
||||||
args: ['--headless', '--disable-gpu', 'window-size=1600,1200'],
|
args: ['--headless', '--disable-gpu', 'window-size=1600,1200'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
firefox: {
|
||||||
|
desiredCapabilities: {
|
||||||
|
browserName: 'firefox',
|
||||||
|
},
|
||||||
|
},
|
||||||
'firefox-headless': {
|
'firefox-headless': {
|
||||||
desiredCapabilities: {
|
desiredCapabilities: {
|
||||||
|
browserName: 'firefox',
|
||||||
'moz:firefoxOptions': {
|
'moz:firefoxOptions': {
|
||||||
args: ['-headless'],
|
args: ['-headless'],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user