language: node_js
sudo: false
node_js: 8
cache:
  directories:
    - node_modules
before_install:
- sudo add-apt-repository ppa:fontforge/fontforge -y
- sudo apt-get update -q
- sudo apt-get install fontforge ttfautohint -y
before_script:
- node --version
- npm --version
script:
- npm run test:ci
before_deploy:
- npm install
- npm run build
- npm run dist
deploy:
  provider: npm
  email: susukang98@gmail.com
  api_key:
    secure: TYJfuTLZKbYvTskuMlmuKnQb5F35GFPN2AqSf0RtZYWGLozIaIkKcpTVbjzo859FWuxPjci53FGiJih3+0iVfIC39CDTrFZutubn8qduOfRAVTL1WzeQvdww8miJNwUY59HmoOa78OtbNCVg/N7zFSZzRXAcgje8IADQFIISwk8=
  on:
    tags: true
    branch: develop
addons:
  sauce_connect:
    username: 'summernoteis'
after_success:
- npm run coveralls
