1
0
Fork 0
mirror of https://gitlab.redox-os.org/CoffeeCode/redox-ssh.git synced 2025-12-28 18:42:18 +01:00

Add Gitlab CI

This commit is contained in:
Wildan M 2024-04-16 03:59:47 +07:00
parent 656f021eb9
commit 593d21e593
2 changed files with 19 additions and 35 deletions

19
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,19 @@
image: "redoxos/redoxer"
stages:
- build
- test
cache:
paths:
- target/
build:redox:
stage: build
script: redoxer build --verbose
test:redox:
stage: test
dependencies:
- build:redox
script: redoxer test --verbose

View file

@ -1,35 +0,0 @@
sudo: false
language: rust
rust:
- stable
- beta
- nightly
cache: cargo
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:/usr/local/bin:$PATH
- export PATH="$PATH:$HOME/.cargo/bin"
- which cargo-coverage || cargo install cargo-travis
- which rustfmt || cargo install rustfmt
script:
- cargo fmt -- --write-mode=diff
- cargo build
- cargo test
- travis-cargo --only stable doc
after_success:
- travis-cargo --only stable doc-upload
- cargo coveralls