version: '1.0' name: test-pipeline displayName: 测试 triggers: trigger: auto push: branches: precise: - main paths: precise: - install.sh pr: branches: precise: - main paths: precise: - install.sh variables: NVM_CN_IN_CI: '1' stages: - name: stage-02f2cd93 displayName: Test strategy: naturally trigger: auto executor: [] steps: - step: build@ruby name: install_nvm-cn displayName: 安装 rubyVersion: 3.0.2 commands: - bash -c "$(curl -fsSL https://gitee.com/RubyMetric/nvm-cn/raw/main/install.sh)" - '' - '' - '' - if [ -f "$HOME/.nvm/nvm.sh" ];then - '' - ' echo "=> 安装目录完好"' - '' - else - '' - ' echo "=> 安装目录不完整"' - '' - ' exit 1' - '' - fi - '' - '' caches: - ~/.nvm notify: [] strategy: retry: '0' timeout: 1 expression: []