gns3-web-ui/.travis.yml

63 lines
1.6 KiB
YAML
Raw Normal View History

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
- ubuntu-toolchain-r-test
2017-10-18 14:08:32 +00:00
packages:
- google-chrome-stable
- google-chrome-beta
- g++-4.8
2017-10-18 14:08:32 +00:00
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Ubuntu trusty supports max python3.4, cx_freeze-5.1.1 requires min 3.5
- |
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv virtualenv 3.6.3 general
pyenv global general
python3 -V
pip3 -V
2017-10-18 14:08:32 +00:00
before_script:
- yarn
2017-10-18 14:08:32 +00:00
script: yarn ng test --watch=false
2017-10-19 10:16:59 +00:00
after_script:
# publish on gns3.github.io
- yarn ng build --base-href /${TRAVIS_BRANCH}/
2017-12-05 11:28:47 +00:00
- export GIT_LAST_LOG="$(git log -1 --pretty=%B)"
2017-10-19 10:16:59 +00:00
- 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
2017-12-05 11:28:47 +00:00
- git commit -m "Deploy - $GIT_LAST_LOG"
2017-10-19 10:16:59 +00:00
- git push origin master
- cd $TRAVIS_BUILD_DIR
2017-10-19 09:55:06 +00:00
# publish
- yarn buildforelectron
- python3 -m venv env
- |
source env/bin/activate
pip3 install -r scripts/requirements.txt
python3 scripts/build.py download
python3 scripts/build.py build -b dist
# python3 scripts/build.py validate -b dist
- yarn electron-builder --linux --x64