Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
I
ink
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
parity
ink
Commits
45b9c2dc
Verified
Commit
45b9c2dc
authored
Sep 30, 2019
by
Denis_P
👙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create ci, test run
parent
53fa4d58
Pipeline
#52957
failed with stage
in 1 minute and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
107 additions
and
0 deletions
+107
-0
.gitlab-ci.yml
.gitlab-ci.yml
+107
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
45b9c2dc
# .gitlab-ci.yml
#
# ink
#
# pipelines can be triggered manually in the web
stages
:
-
test
-
build
variables
:
GIT_STRATEGY
:
fetch
CARGO_HOME
:
"
/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
SCCACHE_DIR
:
"
/ci-cache/${CI_PROJECT_NAME}/sccache"
CARGO_INCREMENTAL
:
0
CI_SERVER_NAME
:
"
GitLab
CI"
RUSTFLAGS
:
"
-C
link-dead-code"
.collect-artifacts
:
&collect-artifacts
artifacts
:
name
:
"
${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when
:
on_success
expire_in
:
7 days
paths
:
-
artifacts/
.docker-env
:
&docker-env
image
:
parity/rust-builder:latest
before_script
:
-
rustup show
-
cargo --version
-
sccache -s
only
:
-
master
-
/^v[0-9]+\.[0-9]+.*$/
# i.e. v1.0, v2.1rc1
-
schedules
-
web
-
/^[0-9]+$/
# PRs
tags
:
-
linux-docker
#### stage: test
# addons:
# apt:
# packages:
# - libcurl4-openssl-dev
# - libelf-dev
# - libdw-dev
# - binutils-dev
# - libiberty-dev
# - g++
# - cmake
# - zlib1g-dev
test-linux
:
stage
:
test
<<
:
*docker-env
before_script
:
# Print rustc and cargo versions
-
rustc -vV
-
cargo -vV
-
bash --version
# Install cargo-kcov Cargo plugin
-
cargo install --force cargo-kcov
-
cargo kcov -vV
# Install kcov binary
-
wget https://github.com/SimonKagstrom/kcov/archive/v36.tar.gz
-
tar xzf v36.tar.gz
-
pushd kcov-36
-
mkdir build
-
pushd build
-
cmake ..
-
make
-
sudo make install
# Puts kcov in the default location usually /usr/local/bin/kcov
-
kcov --version
-
popd
-
popd
# Export cargo binaries, python and misc settings
-
export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$HOME/Library/Python/2.7/bin:$PATH
# Print current work directory state as directions.
-
ls -lah
# install rust components
-
rustup component add clippy rustfmt
# - rustup target add wasm32-unknown-unknown
script
:
-
|
./scripts/check-workspace.sh
check_workspace=$?
if [ $check_workspace -eq 0 ]
then
# Execute and upload kcov results
cargo kcov --verbose --coveralls --all --no-clean-rebuild
kcov=$?
bash <(curl -s https://codecov.io/bash)
fi
./scripts/check-examples.sh
check_examples=$?
if [ $check_examples -eq 0 ] && [ $check_workspace -eq 0 ]
then
echo "All checks have passed!"
exit 0
else
echo "Some checks have not passed!"
exit 1
fi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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