Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP fix #64 #69

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: node_js
node_js:
- "8"
dist: trusty # needs Ubuntu Trusty
sudo: required
addons:
chrome: stable # have Travis install Chrome stable

before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install: npm install
before_script:
- npm start &
- wget --spider --timeout=15 --retry-connrefused http://localhost:9090
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- sleep 30
- wget --spider --timeout=15 --retry-connrefused http://localhost:9222
- find . | grep 'chrome-linux/chrome$' | xargs ldd
- sleep 30
script:
- npm test

deploy:
provider: pages
local-dir: dist
skip-cleanup: true
github-token: $GITHUB_TOKEN
on:
branch: master
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ module.exports = function (grunt) {
'dist/spid-button.min.js' // Modulo minifizzato da testare
],
options: {
noSandbox: true,
specs: ['src/test/agid-*.js'],
outfile: '_SpecRunner.html',
keepRunner: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"build-watch": "grunt watch:build",
"lint": "grunt lint",
"test-watch": "grunt watch:test",
"test": "grunt test",
"test": "grunt test --verbose",
"performance": "lighthouse $npm_package_localserver_url$npm_package_localserver_port/index.html --output-path=reports/lighthouse.html --view",
"precommit": "npm run lint",
"prepush": "npm test",
Expand Down