Skip to content

Commit

Permalink
Merge 84c49f5 into afc282c
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Jul 15, 2020
2 parents afc282c + 84c49f5 commit 0bc3d75
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 28 deletions.
20 changes: 15 additions & 5 deletions .travis.yml
Expand Up @@ -2,8 +2,10 @@ services:
- docker
language: node_js
cache:
directories:
- node_modules
npm: true
apt: true
pip: true

node_js:
- 10
- 12
Expand All @@ -14,10 +16,18 @@ addons:
packages:
- gcc-4.8
- g++-4.8

env: CXX="g++-4.8" CC="gcc-4.8"

before_script:
- sudo pip install fonttools brotli zopfli
before_install:
- sudo pip install -r requirements.txt

script: 'npm install && npm run-script travis'
script: 'npm run-script travis'
after_success: '<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js'

jobs:
include:
- os: osx
node_js: 14
before_cache:
- brew cleanup
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -9,7 +9,7 @@
"lint": "eslint . && prettier --check '**/*.js'",
"test": "mocha && npm run lint",
"travis": "npm run coverage && npm run lint",
"coverage": "nyc --reporter=lcov --reporter=text -- mocha --reporter dot",
"coverage": "nyc --reporter=lcov --reporter=text -- mocha",
"preversion": "offline-github-changelog --next=${npm_package_version} > CHANGELOG.md && git add CHANGELOG.md"
},
"bin": {
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
@@ -0,0 +1,3 @@
fonttools
brotli
zopfli
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
27 changes: 11 additions & 16 deletions testdata/referenceImages/missingGlyphs/index.html
Expand Up @@ -4,35 +4,30 @@
<meta charset="utf-8">
<style>
@font-face {
font-family: Output Sans;
src: url(OutputSans-Regular.woff2) format("woff2");
font-family: Jim Nightshade;
src: url(JimNightshade-400.woff2) format("woff2");
}

@font-face {
font-family: Output Sans;
src: url(OutputSans-Bold.woff2) format("woff2");
font-weight: 700;
font-family: IBMPlexSans;
src: url(IBMPlexSans-Regular.woff) format("woff");
}

@font-face {
font-family: Input Mono;
src: url(InputMono-Regular.woff2) format("woff2");
}

@font-face {
font-family: Input Mono;
src: url(InputMono-Medium.woff2) format("woff2");
font-weight: 700;
font-family: IBMPlexSans;
src: url(IBMPlexSans-Italic.woff) format("woff");
font-style: italic;
}

code {
font-family: Input Mono, monospace;
font-family: IBMPlexSans, monospace;
font-size: 400%;
}
</style>
</head>
<body>
<pre><code>load('中国').then(<strong>function</strong></code></pre>
<pre><code>load('中国').then(<em>function</em></code></pre>

<div style="font-family: Output Sans">Hello!</div>
<div style="font-family: Jim Nightshade; font-size: 400%;">Hello!</div>
</body>
</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 7 additions & 6 deletions testdata/referenceImages/unusedVariants/index.html
Expand Up @@ -3,18 +3,19 @@
<head>
<style>
@font-face {
font-family: Input Mono;
src: url(InputMono-Regular.woff2) format("woff2");
font-family: IBMPlexSans;
src: url(IBMPlexSans-Regular.woff) format("woff");
}

@font-face {
font-family: Input Mono;
src: url(InputMono-Medium.woff2) format("woff2");
font-weight: 700;
font-family: IBMPlexSans;
src: url(IBMPlexSans-Italic.woff) format("woff");
font-style: italic;
}

code {
font-family: Input Mono, monospace;
font-family: IBMPlexSans, monospace;
font-size: 400%;
}
</style>
</head>
Expand Down

0 comments on commit 0bc3d75

Please sign in to comment.