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
|
|
|
|
2018-01-18 10:27:22 +00:00
|
|
|
# Issue with Travis: https://github.com/travis-ci/travis-ci/issues/8836#issuecomment-356362524
|
|
|
|
sudo: required
|
|
|
|
|
2018-03-29 12:54:16 +00:00
|
|
|
cache:
|
|
|
|
yarn: true
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2018-03-29 11:50:40 +00:00
|
|
|
|
2019-01-28 11:55:20 +00:00
|
|
|
dist: xenial
|
|
|
|
|
2017-10-18 14:08:32 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- google-chrome
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
- ubuntu-toolchain-r-test
|
2017-10-18 14:08:32 +00:00
|
|
|
packages:
|
|
|
|
- google-chrome-stable
|
|
|
|
- google-chrome-beta
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
- g++-4.8
|
2019-01-28 12:08:02 +00:00
|
|
|
- python3-pip
|
2017-10-18 14:08:32 +00:00
|
|
|
|
|
|
|
before_install:
|
2019-01-28 11:57:34 +00:00
|
|
|
# - export CHROME_BIN=chromium-browser
|
|
|
|
# - export DISPLAY=:99.0
|
|
|
|
# - sh -e /etc/init.d/xvfb start
|
2018-01-24 07:35:45 +00:00
|
|
|
# greenkeeper-lockfile support
|
|
|
|
- yarn global add greenkeeper-lockfile@1
|
2017-10-18 14:08:32 +00:00
|
|
|
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
# Ubuntu trusty supports max python3.4, cx_freeze-5.1.1 requires min 3.5
|
2018-01-18 10:27:22 +00:00
|
|
|
# Remove when goes to xenial
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
- |
|
2019-01-28 11:55:20 +00:00
|
|
|
# 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
|
2019-01-28 12:05:10 +00:00
|
|
|
python3 -V
|
2019-01-28 12:16:00 +00:00
|
|
|
wget -qO- https://bootstrap.pypa.io/get-pip.py | python3
|
2019-01-28 12:05:10 +00:00
|
|
|
python3 -m pip -V
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
|
|
|
|
|
2017-10-18 14:08:32 +00:00
|
|
|
before_script:
|
2018-01-24 07:35:45 +00:00
|
|
|
# greenkeeper-lockfile support
|
|
|
|
- greenkeeper-lockfile-update
|
2018-03-12 12:43:03 +00:00
|
|
|
- npm install -g codecov
|
2017-10-18 14:08:32 +00:00
|
|
|
|
2018-11-26 15:45:13 +00:00
|
|
|
script: yarn coverage
|
2018-03-12 12:43:03 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- codecov
|
2017-10-19 10:16:59 +00:00
|
|
|
|
|
|
|
after_script:
|
2018-01-24 07:35:45 +00:00
|
|
|
# greenkeeper-lockfile support
|
|
|
|
- greenkeeper-lockfile-upload
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
# publish on gns3.github.io
|
2018-04-09 13:24:41 +00:00
|
|
|
- yarn buildforgithub --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
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2017-10-19 09:55:06 +00:00
|
|
|
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
# publish
|
|
|
|
- yarn buildforelectron
|
2019-01-28 12:05:10 +00:00
|
|
|
# - python3 -m venv env
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
- |
|
2019-01-28 12:05:10 +00:00
|
|
|
python3 -m pip install -r scripts/requirements.txt
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
python3 scripts/build.py download
|
2018-01-18 08:28:32 +00:00
|
|
|
python3 scripts/build.py build_exe -b dist/exe.gns3server -s
|
2018-01-18 06:48:23 +00:00
|
|
|
python3 scripts/build.py validate -b dist
|
Icons set
Build electron for Linux, Windows and macOS. Ref. #18, #19, #20, #22
Include gns3server in electron app. Ref. #21
Bumping version Ref. #24
CD and Release for AppVeyor, CircleCi and TCI. Ref. #25, #26, #27, #28
Make lighter artifacts #31
Build gns3server for Linux, Windows and macOS. Ref. #33, #34, #35
2018-01-04 11:50:20 +00:00
|
|
|
- yarn electron-builder --linux --x64
|