Use new pipeline

This commit is contained in:
Aoran Zeng 2023-05-09 13:14:44 +08:00
parent 030a84253c
commit 78f51012be

View File

@ -1,42 +0,0 @@
version: '1.0'
name: test-pipeline
displayName: 测试
stages:
- stage:
name: test
displayName: 安装使用测试nvm-cn
steps:
- step: shell@agent # Must provide plugin: https://help.gitee.com/gitee-go/plugin/shell
name: install_nvm-cn
displayName: 安装
script: bash -c "$(curl -fsSL https://gitee.com/RubyKids/nvm-cn/raw/main/install.sh)"
- step: shell@agent
name: test_nvm-cn
displayName: 测试
script: |
if [ -f "$HOME/.nvm/nvm.sh" ];then
echo "=> 安装目录完好"
else
echo "=> 安装目录不完整"
exit 1
fi
if [ $(command -v nvm) ];then
echo "=> nvm命令执行成功"
else
echo "=> nvm命令无法执行"
exit 2
fi
dependsOn: install_nvm-cn
triggers:
- pr:
branches:
include:
- main
- dev
- push:
branches:
include:
- .*