gns3-web-ui/.circleci/config.yml

78 lines
1.8 KiB
YAML
Raw Normal View History

# iOS CircleCI 2.0 configuration file
version: 2
jobs:
build:
macos:
xcode: "9.4.0"
steps:
- checkout
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")"
- run:
2018-07-06 11:19:44 +00:00
name: Installed python and pip version
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: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
- run:
name: Install project
# increased timeout is for material-design-icons
command: |
yarn install --network-timeout 1000000
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
- 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
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
- run:
name: Dist project
command: |
2019-03-08 08:02:21 +00:00
yarn electron-builder --mac --x64 --publish always
- 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.*/