Skip to content

Commit

Permalink
Merge pull request #186 from nfroidure/actions
Browse files Browse the repository at this point in the history
Use GitHub Actions for CI
  • Loading branch information
pioug committed Jan 16, 2021
2 parents 0a5245d + 4c81f3b commit 7507aee
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 53 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

sudo apt-get update
sudo apt-get install -y qt4-qmake libqt4-dev
mkdir -p /ttfautohint && cd /ttfautohint

export FT_VERSION=2.6.3
export HB_VERSION=1.2.7
export TA_VERSION=1.5

wget http://download.savannah.gnu.org/releases/freetype/freetype-"$FT_VERSION".tar.bz2
tar xjf freetype-"$FT_VERSION".tar.bz2
(cd freetype-"$FT_VERSION" && ./configure --without-harfbuzz && sudo make install && sudo make distclean)
wget https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-"$HB_VERSION".tar.bz2
tar xjf harfbuzz-"$HB_VERSION".tar.bz2
(cd harfbuzz-"$HB_VERSION" && ./configure && sudo make install)
(cd freetype-"$FT_VERSION" && ./configure && sudo make install)
wget http://downloads.sourceforge.net/project/freetype/ttfautohint/"$TA_VERSION"/ttfautohint-"$TA_VERSION".tar.gz
tar xzf ttfautohint-"$TA_VERSION".tar.gz
(cd ttfautohint-"$TA_VERSION" && ./configure && sudo make install)

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: push
name: Run tests
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [6, 8, 9, 10, 11, 12]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: .github/workflows/install.sh
- run: npm install
- run: npm test
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# gulp-iconfont
> Create SVG/TTF/EOT/WOFF/WOFF2 fonts from several SVG icons with [Gulp](http://gulpjs.com/).
[![NPM version](https://badge.fury.io/js/gulp-iconfont.svg)](https://npmjs.org/package/gulp-iconfont) [![Build status](https://secure.travis-ci.org/nfroidure/gulp-iconfont.svg)](https://travis-ci.org/nfroidure/gulp-iconfont) [![Dependency Status](https://david-dm.org/nfroidure/gulp-iconfont.svg)](https://david-dm.org/nfroidure/gulp-iconfont) [![devDependency Status](https://david-dm.org/nfroidure/gulp-iconfont/dev-status.svg)](https://david-dm.org/nfroidure/gulp-iconfont#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/nfroidure/gulp-iconfont/badge.svg?branch=master)](https://coveralls.io/r/nfroidure/gulp-iconfont?branch=master) [![Code Climate](https://codeclimate.com/github/nfroidure/gulp-iconfont.svg)](https://codeclimate.com/github/nfroidure/gulp-iconfont)
[![NPM version](https://badge.fury.io/js/gulp-iconfont.svg)](https://npmjs.org/package/gulp-iconfont) [![Build status](https://github.com/nfroidure/gulp-iconfont/workflows/Run%20tests/badge.svg)](https://github.com/nfroidure/gulp-iconfont/actions) [![Dependency Status](https://david-dm.org/nfroidure/gulp-iconfont.svg)](https://david-dm.org/nfroidure/gulp-iconfont) [![devDependency Status](https://david-dm.org/nfroidure/gulp-iconfont/dev-status.svg)](https://david-dm.org/nfroidure/gulp-iconfont#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/nfroidure/gulp-iconfont/badge.svg?branch=master)](https://coveralls.io/r/nfroidure/gulp-iconfont?branch=master) [![Code Climate](https://codeclimate.com/github/nfroidure/gulp-iconfont.svg)](https://codeclimate.com/github/nfroidure/gulp-iconfont)

You can test this library with the
[frontend generator](http://nfroidure.github.io/svgiconfont/).
Expand Down
3 changes: 2 additions & 1 deletion tests/tests.mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ describe('gulp-iconfont', () => {
done();
});
});
it('should work with autohinted iconsfont', done => {
it('should work with autohinted iconsfont', function(done) {
this.timeout(10000);
gulp.src(path.join(__dirname, 'fixtures', 'iconsfont', '*.svg'), { buffer: true })
.pipe(iconfont({
fontName: 'iconsfont',
Expand Down

0 comments on commit 7507aee

Please sign in to comment.