Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Azat Alimov
POD
Commits
d253e665
Verified
Commit
d253e665
authored
4 years ago
by
Vasili Novikov
Browse files
Options
Download
Email Patches
Plain Diff
Implement GitLab CI tests
parent
ff0accaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+51
-0
.gitlab-ci.yml
with
51 additions
and
0 deletions
+51
-0
.gitlab-ci.yml
0 → 100644
+
51
-
0
View file @
d253e665
#### The image base should be the same as in Dockerfile
#### UPDATE: not used for now
# image: 'rust:slim'
stages
:
-
test
-
docs
variables
:
CARGO_HOME
:
$CI_PROJECT_DIR/cargo
APT_CACHE_DIR
:
$CI_PROJECT_DIR/apt
before_script
:
# WARNING: dirty work-around:
# `libsqlcipher-dev` is right now installed on gitlab-runner (shell) host
-
dpkg -l libsqlcipher-dev
# - apt-get update -yq
# - apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y libsqlcipher-dev
-
rustup component add rustfmt
-
rustup component add clippy
test
:
stage
:
test
script
:
-
rustc --version
-
cargo --version
-
cargo fmt --all -- --check
-
cargo clippy --all-targets --all-features -- -D warnings
-
cargo test --verbose
pages
:
stage
:
docs
script
:
-
rm -rf target/doc 2>/dev/null ||
true
-
cargo doc --no-deps
-
mkdir -p public/rustdoc
-
mv -T target/doc public/rustdoc
-
echo '<a href="./rustdoc/pod">rustdoc</a>' > public/index.html
artifacts
:
paths
:
-
public
only
:
-
master
cache
:
paths
:
-
apt/
-
cargo/
-
target/
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment