Skip to content

Commit

Permalink
ci: stop on error
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Apr 25, 2023
1 parent 331184b commit a4db3e1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -490,23 +490,23 @@ jobs:
PATH: "$PATH:$USERPROFILE\\.cargo\\bin"
steps:
- checkout
- run:
name: "Install Protobuf"
command: |
choco install -y protoc
- run:
name: Install Rust
command: |
wget -OutFile "C:\rustup-init.exe" https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
C:\rustup-init.exe -y --default-toolchain 1.68.0 --target x86_64-pc-windows-msvc
- run:
name: "Install Shuttle"
command: ..\.cargo\bin\cargo.exe install cargo-shuttle --path ./cargo-shuttle
- run: ..\.cargo\bin\cargo.exe shuttle --version
- run:
name: Login
command: |
..\.cargo\bin\cargo.exe shuttle login --api-key $env:SHUTTLE_API_KEY
# - run:
# name: "Install Protobuf"
# command: |
# choco install -y protoc
# - run:
# name: Install Rust
# command: |
# wget -OutFile "C:\rustup-init.exe" https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
# C:\rustup-init.exe -y --default-toolchain 1.68.0 --target x86_64-pc-windows-msvc
# - run:
# name: "Install Shuttle"
# command: ..\.cargo\bin\cargo.exe install cargo-shuttle --path ./cargo-shuttle
# - run: ..\.cargo\bin\cargo.exe shuttle --version
# - run:
# name: Login
# command: |
# ..\.cargo\bin\cargo.exe shuttle login --api-key $env:SHUTTLE_API_KEY
- run:
name: QA
command: ./.circleci/qa.ps1
Expand Down
6 changes: 6 additions & 0 deletions .circleci/qa.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#! /usr/bin/env sh

Enable-ExperimentalFeature PSNativeCommandErrorActionPreference

Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$PSNativeCommandUseErrorActionPreference = $true

# Prepare directory
mkdir -p /tmp/qa-windows
cd /tmp/qa-windows
Expand Down

0 comments on commit a4db3e1

Please sign in to comment.