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

80 lines
2.1 KiB
YAML
Raw Normal View History

# iOS CircleCI 2.0 configuration file
version: 2
jobs:
build:
macos:
xcode: "9.1.0"
steps:
- checkout
- run:
name: Set timezone and check current datetime
command: |
sudo systemsetup -settimezone Europe/Warsaw
echo "Today is $(date +"%Y-%m-%d %T")"
2018-03-29 13:01:32 +00:00
- restore_cache:
name: Restore Yarn Package Cache
2018-04-06 11:37:18 +00:00
keys:
- dependency-cache-{{ checksum "yarn.lock" }}
- dependency-cache-
2018-03-29 13:01:32 +00:00
- run:
name: Install project
# there is an issue with yarn and cache during executed on CI; for now we just run it twice, second should
# be successful. Check it later if updates fixed the issue
command: |
yarn || true
yarn || true
2018-03-29 13:01:32 +00:00
- save_cache:
name: Save Yarn Package Cache
2018-04-06 11:37:18 +00:00
key: dependency-cache-{{ checksum "yarn.lock" }}
2018-03-29 13:01:32 +00:00
paths:
2018-04-06 06:24:20 +00:00
- ./node_modules
2018-03-29 13:01:32 +00:00
- run:
name: Building WebUI for distribution
command: |
yarn buildforelectron
- run:
name: Building gns3server
command: |
# brew update is required due to bug in CCI: https://discuss.circleci.com/t/homebrew-must-be-run-under-ruby-2-3-runtimeerror/17232/5
brew update
brew --env
brew --config
brew upgrade python
python -V
2018-03-13 13:06:42 +00:00
pip3 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
- run:
name: Dist project
command: |
yarn electron-builder --mac --x64
- 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.*/