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
|
|
|
# iOS CircleCI 2.0 configuration file
|
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
macos:
|
2019-12-23 17:52:43 +00:00
|
|
|
xcode: "10.1.0"
|
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
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-12-23 17:52:43 +00:00
|
|
|
|
2019-10-23 09:17:24 +00:00
|
|
|
- run:
|
|
|
|
name: Install nodejs
|
|
|
|
command: |
|
2019-10-30 09:32:49 +00:00
|
|
|
brew update
|
2019-12-23 17:52:43 +00:00
|
|
|
brew upgrade yarn
|
2019-10-30 09:28:04 +00:00
|
|
|
brew upgrade node
|
2019-10-23 09:17:24 +00:00
|
|
|
|
2019-07-26 08:56:22 +00:00
|
|
|
- run:
|
|
|
|
name: Set timezone and check current datetime
|
|
|
|
command: |
|
|
|
|
sudo systemsetup -settimezone Europe/Warsaw
|
|
|
|
echo "Today is $(date +"%Y-%m-%d %T")"
|
|
|
|
|
2019-12-23 18:52:23 +00:00
|
|
|
- run:
|
|
|
|
name: Set ENV variables
|
|
|
|
command: |
|
|
|
|
echo 'export HOMEBREW_NO_AUTO_UPDATE=1' >> ~/.envs
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Install Python version 3.6.5 & readline 7.0.5
|
|
|
|
command: |
|
|
|
|
source ~/.envs
|
|
|
|
curl -o /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
|
|
|
|
curl -o /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/b1bd1c4a62e1336422de3614d1fc49ffbce589a8/Formula/readline.rb
|
|
|
|
# remove check for old compilers which creates the error described in https://github.com/sashkab/homebrew-python/issues/36
|
|
|
|
sed -i.bak -e '58,61d' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
|
|
|
|
brew unlink python
|
|
|
|
brew uninstall --ignore-dependencies readline
|
|
|
|
brew install readline
|
|
|
|
brew info readline
|
|
|
|
brew pin readline
|
|
|
|
# --ignore-dependencies is used to prevent this issue: https://github.com/tensorflow/tensorflow/issues/25093
|
|
|
|
brew install --ignore-dependencies python
|
|
|
|
brew switch python 3.6.5_1
|
|
|
|
brew info python
|
|
|
|
brew pin python
|
|
|
|
|
2018-07-06 11:16:45 +00:00
|
|
|
- run:
|
2018-07-06 11:19:44 +00:00
|
|
|
name: Installed python and pip version
|
2018-07-06 11:16:45 +00:00
|
|
|
command: |
|
2018-07-06 11:18:16 +00:00
|
|
|
python3 -V
|
2018-07-06 11:19:44 +00:00
|
|
|
pip3 -V
|
2018-07-06 11:16:45 +00:00
|
|
|
|
2018-07-06 11:24:17 +00:00
|
|
|
- restore_cache:
|
|
|
|
name: Restore Yarn Package Cache
|
|
|
|
keys:
|
|
|
|
- yarn-packages-{{ checksum "yarn.lock" }}
|
2018-03-29 13:01: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
|
|
|
- run:
|
|
|
|
name: Install project
|
2018-07-06 11:06:29 +00:00
|
|
|
# increased timeout is for material-design-icons
|
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
|
|
|
command: |
|
2018-07-06 11:06:29 +00:00
|
|
|
yarn install --network-timeout 1000000
|
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
|
|
|
|
2018-07-06 11:24:17 +00:00
|
|
|
- save_cache:
|
|
|
|
name: Save Yarn Package Cache
|
|
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
|
|
paths:
|
|
|
|
- ~/.cache/yarn
|
2018-03-29 13:01: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
|
|
|
- run:
|
|
|
|
name: Building WebUI for distribution
|
|
|
|
command: |
|
|
|
|
yarn buildforelectron
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Building gns3server
|
|
|
|
command: |
|
2018-07-06 11:19:44 +00:00
|
|
|
python3 -V
|
|
|
|
pip3 install -r scripts/requirements.txt
|
2019-04-29 08:09:08 +00:00
|
|
|
python3 scripts/build.py download -a
|
2018-07-06 11:19:44 +00:00
|
|
|
python3 scripts/build.py build_exe -b dist/exe.gns3server -s
|
2019-03-08 08:02:21 +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
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Dist project
|
|
|
|
command: |
|
2019-03-08 08:02:21 +00:00
|
|
|
yarn electron-builder --mac --x64 --publish always
|
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
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Gather artifacts
|
|
|
|
command: |
|
|
|
|
mkdir artifacts
|
|
|
|
cp build/*.dmg artifacts/
|
|
|
|
|
|
|
|
- store_artifacts:
|
|
|
|
path: artifacts
|
|
|
|
destination: artifacts
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_and_deploy:
|
|
|
|
jobs:
|
|
|
|
- build:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /v.*/
|
|
|
|
|