mirror of
https://gitee.com/RubyMetric/nvm-cn.git
synced 2025-12-25 20:02:45 +00:00
Use new pipeline
This commit is contained in:
parent
030a84253c
commit
78f51012be
|
|
@ -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:
|
||||
- .*
|
||||
Loading…
Reference in New Issue