Run lint via parallel make.

pull/274/head
Peter Oliver 2017-08-20 11:36:03 +07:00
parent 19a2b9390e
commit 5e0b8f319b
2 changed files with 16 additions and 7 deletions

@ -2,10 +2,8 @@ sudo: true
language: python
env:
- VARIANT=source/Hack-Regular.ufo
- VARIANT=source/Hack-Bold.ufo
- VARIANT=source/Hack-Italic.ufo
- VARIANT=source/Hack-BoldItalic.ufo
- TARGET="lint"
- TARGET="build-with-dependencies"
before_script:
- pip install ufolint
@ -14,9 +12,7 @@ before_script:
- sudo apt-get install -y gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
script:
- "ufolint $VARIANT"
- shellcheck build.sh
- ./build.sh --install-dependencies
- make -j $TARGET
notifications:
email: false

@ -0,0 +1,13 @@
build: source/*.ufo
./build.sh
build-with-dependencies: source/*.ufo
./build.sh --install-dependencies
lint: shellcheck ufolint
shellcheck: build.sh
$@ $^
ufolint: source/*.ufo
$@ $^