Skip to content
Snippets Groups Projects
Verified Commit 87353766 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

install `cargo-script` and use `make.rs` in CI

parent f8fa1ad8
No related branches found
No related tags found
1 merge request!202use `gitlab.isae-supaero.fr:a.stevan/nob.rs` to build
Pipeline #8279 passed
...@@ -17,8 +17,12 @@ jobs: ...@@ -17,8 +17,12 @@ jobs:
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
- name: Install dependencies
run: |
cargo install cargo-script
- name: Run fmt check - name: Run fmt check
run: make fmt-check run: |
./make.rs fmt --check
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
...@@ -31,8 +35,12 @@ jobs: ...@@ -31,8 +35,12 @@ jobs:
sudo apt update --yes sudo apt update --yes
sudo apt upgrade --yes sudo apt upgrade --yes
sudo apt install protobuf-compiler --yes sudo apt install protobuf-compiler --yes
cargo install cargo-script
- name: Show configuration - name: Show configuration
run: make show run: |
./make.rs version
- name: Run tests - name: Run tests
run: | run: |
make check clippy test ./make.rs check
./make.rs clippy
./make.rs test
...@@ -16,9 +16,10 @@ workflow: ...@@ -16,9 +16,10 @@ workflow:
fmt: fmt:
stage: fmt stage: fmt
before_script:
- cargo install cargo-script
script: script:
- make fmt-check - ./make.rs fmt --check
test: test:
stage: test stage: test
...@@ -28,7 +29,10 @@ test: ...@@ -28,7 +29,10 @@ test:
- apt update --yes - apt update --yes
- apt upgrade --yes - apt upgrade --yes
- apt install protobuf-compiler --yes - apt install protobuf-compiler --yes
- make show - cargo install cargo-script
- ./make.rs version
script: script:
- make check clippy test - ./make.rs check
- ./make.rs clippy
- ./make.rs test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment