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:
parent
656f021eb9
commit
593d21e593
2 changed files with 19 additions and 35 deletions
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal 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
|
||||||
35
.travis.yml
35
.travis.yml
|
|
@ -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
|
|
||||||
Loading…
Reference in a new issue