language: node_js
cache: yarn
node_js:
  - node
before_script:
  - http-server
script:
  - npm run build
deploy:
  repo: jsonnull/jsonnull.github.io
  local_dir: public/
  fqdn: jsonnull.com
  target_branch: master
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
  on:
    branch: master

language: node_js
cache: yarn
node_js:
  - node
before_script:
  - http-server &
script:
  - npm run build
deploy:
  repo: jsonnull/jsonnull.github.io
  local_dir: public/
  fqdn: jsonnull.com
  target_branch: master
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
  on:
    branch: master

Make server run in background in CI environment.
Make server run in background in CI environment.
