зеркало из https://github.com/github/lit-html.git
Travis CI integration (#47)
This commit is contained in:
Родитель
c4d76223b1
Коммит
9134097082
|
@ -26,3 +26,6 @@ pids
|
|||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# bower_components for testing
|
||||
bower_components
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
language: node_js
|
||||
sudo: required
|
||||
dist: trusty
|
||||
node_js: stable
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- google-chrome
|
||||
packages:
|
||||
- google-chrome-beta
|
||||
cache: yarn
|
||||
before_script:
|
||||
- mkdir -p ~/bin
|
||||
- ln -s /usr/bin/google-chrome-beta ~/bin/google-chrome
|
||||
- export PATH=$HOME/bin:$PATH
|
||||
- npm run build
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- npm run pretest
|
||||
test: wct -l chrome
|
||||
after_script: npm run posttest
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -11,7 +11,9 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"test": "echo \"run polyserve --npm and open /test/index.html a browser with module support\"",
|
||||
"pretest": "npm run posttest; ln -s node_modules bower_components",
|
||||
"test": "wct -l chrome",
|
||||
"posttest": "rm -f bower_components",
|
||||
"checksize": "uglifyjs lit-html.js -mc --toplevel | gzip -9 | wc -c"
|
||||
},
|
||||
"author": "The Polymer Authors",
|
||||
|
@ -21,7 +23,8 @@
|
|||
"chai": "^4.0.2",
|
||||
"mocha": "^3.4.2",
|
||||
"typescript": "^2.4.1",
|
||||
"uglify-es": "^3.0.27"
|
||||
"uglify-es": "^3.0.27",
|
||||
"web-component-tester": "^6.0.1"
|
||||
},
|
||||
"typings": "lit-html.d.ts",
|
||||
"dependencies": {}
|
||||
|
|
|
@ -199,7 +199,7 @@ export abstract class Part {
|
|||
try {
|
||||
value = value(this);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
console.warn(e);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,21 +1,12 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="../node_modules/mocha/mocha.css">
|
||||
<script src="../node_modules/mocha/mocha.js"></script>
|
||||
<script src="../node_modules/chai/chai.js"></script>
|
||||
<script>
|
||||
mocha.setup('tdd');
|
||||
</script>
|
||||
<script src="../node_modules/web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="mocha"></div>
|
||||
<script type="module" src="./lit-html_test.js"></script>
|
||||
<script type="module" src="./lib/repeat_test.js"></script>
|
||||
<script type="module" src="./lib/until_test.js"></script>
|
||||
<script type="module" src="./lib/lit-extended_test.js"></script>
|
||||
<script type="module">
|
||||
mocha.run();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Загрузка…
Ссылка в новой задаче