代码拉取完成,页面将自动刷新
同步操作将从 张平/vscode-esp-idf-extension 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
stages:
- lint
- test
- build
- extension_tests
- deploy
cache:
paths:
- node_modules
before_script:
- test ! -z "$CI_NPM_REGISTRY" && npm config set registry $CI_NPM_REGISTRY || true
- unset HTTP_PROXY
- unset ALL_PROXY
- yarn
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -n $GITLAB_KEY > ~/.ssh/id_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
copyright_lint_test:
image: $CI_DOCKER_REGISTRY/python-static-code-analysis
stage: lint
tags: ["build", "internet", "amd64"]
before_script:
- echo "Skipping before_script"
script:
- cd ci && python copyright_header_checker.py -d ../src ../menuconfig -x ../menuconfig/js/lib ../src/views ../src/views/menuconfig -e js ts py
typescript_lint_test:
image: node:slim
stage: lint
tags: ["build", "internet", "amd64"]
script:
- yarn run tslint
node_vulnerabilities_test:
image: node:slim
stage: lint
tags: ["build", "internet", "amd64"]
script:
- yarn audit --registry=https://registry.npmjs.org
allow_failure: true
python_lint_test:
image: $CI_DOCKER_REGISTRY/ubuntu-test-env
stage: lint
tags: ["build", "internet", "amd64"]
artifacts:
when: on_failure
paths:
- flake8_output.txt
- bandit_output.txt
expire_in: 1 week
before_script:
- source /opt/pyenv/activate
- pyenv global 2.7.15
- python -m pip install bandit flake8
script:
- python -m bandit -r -f txt -o bandit_output.txt .
- python -m flake8 --config=.flake8 --output-file=flake8_output.txt --tee
build_vsix:
image: electronuserland/builder:11
stage: build
tags: ["build", "internet", "amd64"]
artifacts:
paths:
- esp-idf-extension-*.vsix
expire_in: 1 week
script:
- yarn config set script-shell /bin/bash
- yarn run package
deploy_marketplace:
image: electronuserland/builder:11
stage: deploy
tags:
- deploy
before_script:
- echo "Skipping before_script"
artifacts:
paths:
- esp-idf-extension-*.vsix
untracked: false
expire_in: 30 days
script:
- yarn config set script-shell /bin/bash
- yarn release
when: manual
deploy_github:
stage: deploy
tags:
- deploy
before_script:
- echo "Skipping before_script"
script:
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- echo -n $GH_PUSH_KEY > ~/.ssh/id_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git remote remove github &>/dev/null || true
- git remote add github git@github.com:espressif/${VSCODE_ESP_IDF_REPO}.git
- cd ci && ./push_to_github.sh
when: manual
tests_extension_units:
image: $CI_DOCKER_REGISTRY/ubuntu-vscode:1-d2303206
stage: extension_tests
tags: ["build", "internet", "amd64"]
artifacts:
paths:
- "*.log"
reports:
junit:
- results/*
when: always
expire_in: 1 week
script:
- Xvfb :99 & sleep 2
- yarn run test --VERBOSE >> testing.results.log
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。