2017-10-18 14:08:32 +00:00
|
|
|
language: node_js
|
2017-10-19 09:55:06 +00:00
|
|
|
|
2017-10-18 14:08:32 +00:00
|
|
|
node_js:
|
2017-10-19 09:55:06 +00:00
|
|
|
- node
|
2017-10-18 14:08:32 +00:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- google-chrome
|
|
|
|
packages:
|
|
|
|
- google-chrome-stable
|
|
|
|
- google-chrome-beta
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- export CHROME_BIN=chromium-browser
|
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
|
|
|
|
|
|
|
before_script:
|
2017-10-19 10:16:59 +00:00
|
|
|
- npm install -g karma
|
2017-10-18 14:08:32 +00:00
|
|
|
|
2017-10-19 10:16:59 +00:00
|
|
|
script: ng test --watch=false
|
|
|
|
|
|
|
|
after_script:
|
|
|
|
- ng build --base-href /${TRAVIS_BRANCH}/
|
|
|
|
- git clone https://${GITHUB_CREDENTIALS}@github.com/GNS3/gns3.github.io.git github-pages
|
|
|
|
- mkdir -p github-pages/${TRAVIS_BRANCH}
|
|
|
|
- rsync -r --delete dist/ github-pages/${TRAVIS_BRANCH}
|
|
|
|
- cd github-pages/${TRAVIS_BRANCH}
|
|
|
|
- git config user.email "developers@gns3.net"
|
|
|
|
- git config user.name "GNS3 Build"
|
|
|
|
- git add -A
|
|
|
|
- git commit -m "Deploy - $(git log -1 --pretty=%B)"
|
|
|
|
- git push origin master
|
2017-10-19 09:55:06 +00:00
|
|
|
|