Skip to content

Commit

Permalink
test(masonry): get tests passing with update cli commands
Browse files Browse the repository at this point in the history
  • Loading branch information
edoparearyee committed May 29, 2018
1 parent 37e41ef commit b7e82c3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
31 changes: 18 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
dist: trusty
sudo: false
language: node_js
node_js:
- "8"
os:
- linux
before_install:
# Use a virtual display.
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Install latest chrome.
- export CHROME_BIN=chromium-browser

addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable

cache:
directories:
- ./node_modules

install:
- npm install --no-progress
- npm i --no-progress

script:
# Use Chromium instead of Chrome.
- export CHROME_BIN=chromium-browser
- npm run lint
- npm run test -- --no-progress --code-coverage --single-run
- npm run e2e -- --no-progress
- xvfb-run -a npm run test -- --watch false --code-coverage --browsers ChromeNoSandbox
- xvfb-run -a npm run e2e
- npm run coverage
9 changes: 7 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
],
"scripts": [
"node_modules/masonry-layout/dist/masonry.pkgd.js"
]
],
"progress": false
},
"configurations": {
"production": {
Expand Down Expand Up @@ -71,6 +72,10 @@
"karmaConfig": "./karma.conf.js",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"progress": false,
"codeCoverageExclude": [
"src/app/masonry/masonry-ref.ts"
],
"scripts": [
"node_modules/masonry-layout/dist/masonry.pkgd.js"
],
Expand Down Expand Up @@ -133,4 +138,4 @@
"prefix": "sn"
}
}
}
}

0 comments on commit b7e82c3

Please sign in to comment.