Merge pull request #278 from GNS3/update-travisci-xenial

Update TravisCI to Xenial, Fixes: #277
This commit is contained in:
ziajka 2019-01-28 14:20:45 +01:00 committed by GitHub
commit 0eeb983951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,34 +11,27 @@ cache:
directories:
- node_modules
dist: xenial
addons:
apt:
sources:
- google-chrome
- ubuntu-toolchain-r-test
packages:
- google-chrome-stable
- google-chrome-beta
- google_chrome
- g++-4.8
services:
- xvfb
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# greenkeeper-lockfile support
- yarn global add greenkeeper-lockfile@1
# Ubuntu trusty supports max python3.4, cx_freeze-5.1.1 requires min 3.5
# Remove when goes to xenial
- |
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
wget -qO- https://bootstrap.pypa.io/get-pip.py | sudo python3
python3 -m pip -V
before_script:
@ -70,9 +63,8 @@ after_script:
# publish
- yarn buildforelectron
- python3 -m venv env
- |
pip3 install -r scripts/requirements.txt
python3 -m pip install -r scripts/requirements.txt
python3 scripts/build.py download
python3 scripts/build.py build_exe -b dist/exe.gns3server -s
python3 scripts/build.py validate -b dist