language: node_js
node_js:
  - "6"
branches:
  only:
  - develop

install:
- npm install

before_script:
- git config --global user.name 'Campinas Front-end'
- git config --global user.email 'campinasfrontend@gmail.com'

script:
- npm run build

after_success:
- cd build
- git init
- git remote add origin $DEPLOY_REPO
- git add -A .
- git commit -m $TRAVIS_BUILD_NUMBER
- git push -f -u -q origin master:gh-pages

language: node_js
node_js:
  - "6"
branches:
  only:
  - develop

install:
- npm install

before_script:
- git config --global user.name 'Campinas Front-end'
- git config --global user.email 'campinasfrontend@gmail.com'

script:
- npm run build

after_success:
- cp CNAME build
- cd build
- git init
- git remote add origin $DEPLOY_REPO
- git add -A .
- git commit -m $TRAVIS_BUILD_NUMBER
- git push -f -u -q origin master:gh-pages

Copy CNAME file to build folder
Copy CNAME file to build folder
