Fetch git tags manually in CI (#1590)

* Fetch git tags manually in CI

* Dont need espeak in CI anymore
This commit is contained in:
Nutomic 2021-04-26 13:30:30 +00:00 committed by GitHub
parent db1abff857
commit dc1a0dcd5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 3 deletions

View File

@ -8,11 +8,12 @@ platform:
steps: steps:
- name: chown repo - name: prepare repo
image: ekidd/rust-musl-builder:1.50.0 image: ekidd/rust-musl-builder:1.50.0
user: root user: root
commands: commands:
- chown 1000:1000 . -R - chown 1000:1000 . -R
- git fetch --tags
- name: check formatting - name: check formatting
image: rustdocker/rust:nightly image: rustdocker/rust:nightly
@ -34,7 +35,7 @@ steps:
RUST_TEST_THREADS: 1 RUST_TEST_THREADS: 1
commands: commands:
- sudo apt-get update - sudo apt-get update
- sudo apt-get -y install --no-install-recommends espeak postgresql-client - sudo apt-get -y install --no-install-recommends postgresql-client
- cargo test --workspace --no-fail-fast - cargo test --workspace --no-fail-fast
- name: cargo build - name: cargo build
@ -136,6 +137,15 @@ platform:
steps: steps:
- name: prepare repo
image: rust:1.50-slim-buster
user: root
commands:
- chown 1000:1000 . -R
- apt update
- apt install --no-install-recommends --yes git
- git fetch --tags
- name: cargo test - name: cargo test
image: rust:1.50-slim-buster image: rust:1.50-slim-buster
environment: environment:
@ -145,7 +155,7 @@ steps:
RUST_TEST_THREADS: 1 RUST_TEST_THREADS: 1
commands: commands:
- apt-get update - apt-get update
- apt-get -y install --no-install-recommends espeak postgresql-client libssl-dev pkg-config libpq-dev - apt-get -y install --no-install-recommends postgresql-client libssl-dev pkg-config libpq-dev
- cargo test --workspace --no-fail-fast - cargo test --workspace --no-fail-fast
- cargo build - cargo build