Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-welcome
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-welcome
Commits
f49627c6
Commit
f49627c6
authored
Jan 27, 2020
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'alatiera/update-ci-template' into 'master'
ci: update to use the CI Template Closes #5 See merge request GNOME/gnome-tour!4
parents
12f1d1b1
bfa7f8e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
68 deletions
+11
-68
.gitlab-ci.yml
.gitlab-ci.yml
+11
-68
No files found.
.gitlab-ci.yml
View file @
f49627c6
stages
:
-
lint
-
test
-
review
variables
:
BUNDLE
:
"
gnome-tour-nightly.flatpak"
include
:
-
project
:
'
gnome/citemplates'
file
:
'
flatpak/flatpak-ci-initiative-sdk-extensions.yml'
# ref: ''
flatpak
:
image
:
"
registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master"
stage
:
"
test"
image
:
'
registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master'
variables
:
BUNDLE
:
"
org.gnome.TourDevel.flatpak"
MANIFEST_PATH
:
"
build-aux/org.gnome.TourDevel.json"
FLATPAK_MODULE
:
"
gnome-tour"
MESON_ARGS
:
"
-Dprofile=development"
APP_ID
:
"
org.gnome.TourDevel"
RUNTIME_REPO
:
"
https://nightly.gnome.org/gnome-nightly.flatpakrepo"
extends
:
'
.flatpak'
script
:
-
flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
# Build the flatpak repo
-
flatpak-builder --run app ${MANIFEST_PATH} meson --prefix=/app ${MESON_ARGS} _build
-
flatpak-builder --run app ${MANIFEST_PATH} ninja -C _build install
# Run the tests
-
flatpak-builder --finish-only app ${MANIFEST_PATH}
-
>
xvfb-run -a -s "-screen 0 1024x768x24"
flatpak build
--env=LANG=C.UTF-8
--env=NO_AT_BRIDGE=1
app
dbus-run-session
meson test -C _build --no-stdsplit --print-errorlogs
# Create a flatpak bundle
-
flatpak build-export repo app
-
flatpak build-bundle repo ${BUNDLE} ${APP_ID}
artifacts
:
paths
:
-
$BUNDLE
expire_in
:
5 days
cache
:
key
:
"
flatpak"
paths
:
-
.flatpak-builder/downloads/
-
.flatpak-builder/git/
-
target/
-
target_test/
review
:
stage
:
review
dependencies
:
-
flatpak
script
:
-
echo "Generating flatpak deployment"
artifacts
:
paths
:
-
$BUNDLE
expire_in
:
30 days
environment
:
name
:
review/$CI_COMMIT_REF_NAME
url
:
https://gitlab.gnome.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE}
on_stop
:
stop_review
stop_review
:
stage
:
review
script
:
-
echo "Stopping flatpak deployment"
when
:
manual
environment
:
name
:
review/$CI_COMMIT_REF_NAME
action
:
stop
nightly
:
extends
:
'
.publish_nightly'
# Configure and run rustfmt
# Exits and builds fails if on bad format
rustfmt
:
image
:
"
rust:slim"
stage
:
"
lint
"
stage
:
"
.pre
"
script
:
-
rustup component add rustfmt
# Create blank versions of our configured files
...
...
@@ -87,4 +31,3 @@ rustfmt:
-
rustc -Vv && cargo -Vv
-
cargo fmt --version
-
cargo fmt --all -- --color=always --check
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