Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dspace7 Angular
Manage
Activity
Members
Labels
Plan
Issues
42
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vtechworks
Dspace7 Angular
Commits
b906fb2e
Unverified
Commit
b906fb2e
authored
7 years ago
by
Art Lowel
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #207 from courtneypattison/travis-headless-chrome
Run Travis using headless Chrome addon
parents
821e9165
909845eb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+2
-13
2 additions, 13 deletions
.travis.yml
karma.conf.js
+0
-9
0 additions, 9 deletions
karma.conf.js
package.json
+2
-1
2 additions, 1 deletion
package.json
protractor.conf.js
+4
-1
4 additions, 1 deletion
protractor.conf.js
with
8 additions
and
24 deletions
.travis.yml
+
2
−
13
View file @
b906fb2e
sudo
:
required
dist
:
trusty
addons
:
apt
:
sources
:
-
google-chrome
packages
:
-
google-chrome-stable
-
chrome
:
stable
language
:
node_js
...
...
@@ -24,14 +20,7 @@ before_install:
install
:
-
travis_retry yarn install
before_script
:
-
travis_wait yarn run lint
-
travis_wait yarn run build
-
export CHROME_BIN=chromium-browser
-
export DISPLAY=:99.0
-
sh -e /etc/init.d/xvfb start
-
sleep
3
script
:
-
yarn run build
-
yarn run ci
-
cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
This diff is collapsed.
Click to expand it.
karma.conf.js
+
0
−
9
View file @
b906fb2e
...
...
@@ -146,11 +146,6 @@ module.exports = function (config) {
],
customLaunchers
:
{
// Continuous integraation with Chrome - launcher
'
ChromeTravisCi
'
:
{
base
:
'
Chrome
'
,
flags
:
[
'
--no-sandbox
'
]
},
// Remote Selenium Server with Chrome - launcher
'
SeleniumChrome
'
:
{
base
:
'
WebDriver
'
,
...
...
@@ -173,9 +168,5 @@ module.exports = function (config) {
};
if
(
process
.
env
.
TRAVIS
)
{
configuration
.
browsers
=
[
'
ChromeTravisCi
'
];
}
config
.
set
(
configuration
);
};
This diff is collapsed.
Click to expand it.
package.json
+
2
−
1
View file @
b906fb2e
...
...
@@ -55,11 +55,12 @@
"debug:server"
:
"node-nightly --inspect --debug-brk dist/server.js"
,
"debug:build"
:
"node-nightly --inspect --debug-brk node_modules/webpack/bin/webpack.js"
,
"debug:build:prod"
:
"node-nightly --inspect --debug-brk node_modules/webpack/bin/webpack.js --env.aot --env.client --env.server -p"
,
"ci"
:
"yarn run lint && yarn run build:aot && yarn run test && npm-run-all -p -r server e2e"
,
"ci"
:
"yarn run lint && yarn run build:aot && yarn run test
:headless
&& npm-run-all -p -r server e2e"
,
"protractor"
:
"node node_modules/protractor/bin/protractor"
,
"pree2e"
:
"yarn run webdriver:update"
,
"e2e"
:
"yarn run protractor"
,
"test"
:
"karma start --single-run"
,
"test:headless"
:
"karma start --single-run --browsers ChromeHeadless"
,
"test:watch"
:
"karma start --no-single-run --auto-watch"
,
"webdriver:start"
:
"node node_modules/protractor/bin/webdriver-manager start --seleniumPort 4444"
,
"webdriver:update"
:
"node node_modules/protractor/bin/webdriver-manager update --standalone"
,
...
...
This diff is collapsed.
Click to expand it.
protractor.conf.js
+
4
−
1
View file @
b906fb2e
...
...
@@ -31,7 +31,10 @@ exports.config = {
capabilities
:
{
'
browserName
'
:
'
chrome
'
,
'
version
'
:
''
,
'
platform
'
:
'
ANY
'
'
platform
'
:
'
ANY
'
,
'
chromeOptions
'
:
{
'
args
'
:
[
'
--headless
'
,
'
--disable-gpu
'
]
}
},
// -----------------------------------------------------------------
// Browser and Capabilities: Firefox
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment