#.travis.yml

language: node_js
node_js:
  - "6.9"

branches:
  only:
    - master

before_script:
  - npm i -g @angular/cli
  - npm i -g angular-cli-ghpages

script:
  - npm run build
  - npm run copy:cname

after_success:
  - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ngh --repo=https://$GH_TOKEN@github.com/DubPlus/DubPlus-Site.git --name="coryshaw1" --email=cory.shaw.dev@gmail.com; fi'

notifications:
  email:
    on_failure: change
    on_success: change
#.travis.yml

language: node_js
node_js:
  - "6.9"

branches:
  only:
    - master

before_script:
  - npm i -g @angular/cli
  - npm i -g angular-cli-ghpages

script:
  - npm run build
  - npm run copy:cname

after_success:
  - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ngh --repo=https://$GH_TOKEN@github.com/DubPlus/DubPlus-Site.git --name=coryshaw1 --email=cory.shaw.dev@gmail.com; fi

notifications:
  email:
    on_failure: change
    on_success: change
Remove quotes around after_success script
fix(build): Remove quotes around after_success script
