gns3-web-ui/.travis.yml

36 lines
807 B
YAML

language: node_js
node_js:
- node
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:
- npm install -g karma
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