Update test-pipeline.yml

This commit is contained in:
ccmywish 2023-05-09 05:50:58 +00:00 committed by Gitee
parent e038d213c3
commit 1def92ffdd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -32,6 +32,22 @@ stages:
rubyVersion: 3.0.2
commands:
- bash -c "$(curl -fsSL https://gitee.com/RubyKids/nvm-cn/raw/main/install.sh)"
- ''
- ''
- ''
- if [ -f "$HOME/.nvm/nvm.sh" ];then
- ''
- ' echo "=> 安装目录完好"'
- ''
- else
- ''
- ' echo "=> 安装目录不完整"'
- ''
- ' exit 1'
- ''
- fi
- ''
- ''
caches:
- ~/.nvm
notify: []
@ -39,26 +55,3 @@ stages:
retry: '0'
timeout: 1
expression: []
- step: build@ruby
name: test-nvm_cn
displayName: 测试
rubyVersion: 3.0.2
commands:
- 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
caches: []
notify: []
strategy:
retry: '0'
dependsOn: install_nvm-cn