Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mesonium
gajim
Commits
9a0a2a9b
Commit
9a0a2a9b
authored
4 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Update CI
parent
9dd5eb6b
No related branches found
Branches containing commit
Tags
gajim-1.4.1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+30
-6
30 additions, 6 deletions
.gitlab-ci.yml
scripts/ci/appveyor.py
+22
-0
22 additions, 0 deletions
scripts/ci/appveyor.py
with
52 additions
and
6 deletions
.gitlab-ci.yml
+
30
−
6
View file @
9a0a2a9b
before_script
:
workflow
:
-
sudo apt-get build-dep -y -qq gajim-default-nightly
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
never
-
when
:
always
stages
:
stages
:
-
test
-
test
-
build
-
build
run-tests
:
Code Quality
:
stage
:
test
stage
:
test
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"schedule"'
when
:
never
-
when
:
always
script
:
script
:
-
rm -rf civenv-master
-
rm -rf civenv-master
-
virtualenv -p python3 --system-site-packages civenv
-
virtualenv -p python3 --system-site-packages civenv
...
@@ -35,21 +42,31 @@ run-tests:
...
@@ -35,21 +42,31 @@ run-tests:
reports
:
reports
:
cobertura
:
coverage.xml
cobertura
:
coverage.xml
run-
appdata
:
appdata
.xml
:
stage
:
test
stage
:
test
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"schedule"'
when
:
never
-
when
:
always
script
:
script
:
-
python3 setup.py build
-
python3 setup.py build
-
appstream-util validate build/data/org.gajim.Gajim.appdata.xml
-
appstream-util validate build/data/org.gajim.Gajim.appdata.xml
run-build
:
Linux
:
stage
:
build
stage
:
build
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"schedule"'
when
:
never
-
when
:
always
before_script
:
-
sudo apt-get build-dep -y -qq gajim-default-nightly
script
:
script
:
-
python3 setup.py sdist
-
python3 setup.py sdist
-
cd dist
-
cd dist
-
GF=$(basename gajim-* .tar.gz)
-
GF=$(basename gajim-* .tar.gz)
-
gzip -d $GF.tar.gz
-
gzip -d $GF.tar.gz
-
mkdir -p $GF/gajim/data/plugins/
-
mkdir -p $GF/gajim/data/plugins/
-
curl -O https://ftp.gajim.org/plugins_
1
/plugin_installer.zip
-
curl -O https://ftp.gajim.org/plugins_
master_zip
/plugin_installer.zip
-
unzip plugin_installer.zip -d $GF/gajim/data/plugins/
-
unzip plugin_installer.zip -d $GF/gajim/data/plugins/
-
rm plugin_installer.zip
-
rm plugin_installer.zip
-
tar -uf $GF.tar $GF
-
tar -uf $GF.tar $GF
...
@@ -60,3 +77,10 @@ run-build:
...
@@ -60,3 +77,10 @@ run-build:
expire_in
:
1 week
expire_in
:
1 week
paths
:
paths
:
-
dist/gajim-*.tar.gz
-
dist/gajim-*.tar.gz
Windows
:
stage
:
build
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"schedule"'
script
:
-
./scripts/ci/appveyor.py
This diff is collapsed.
Click to expand it.
scripts/ci/appveyor.py
0 → 100755
+
22
−
0
View file @
9a0a2a9b
#!/usr/bin/env python3
import
os
import
requests
webhook_key
=
os
.
environ
[
'
APPVEYOR_WEBHOOK_KEY
'
]
branch
=
os
.
environ
[
'
CI_COMMIT_BRANCH
'
]
url
=
f
'
https://ci.appveyor.com/api/git/webhook?id=
{
webhook_key
}
'
ref
=
f
'
refs/heads/
{
branch
}
'
with
open
(
'
appveyor.yml
'
,
'
r
'
)
as
file
:
yaml
=
file
.
read
()
payload
=
{
'
ref
'
:
ref
,
'
repository
'
:
{
'
name
'
:
'
Gajim
'
},
'
config
'
:
yaml
}
req
=
requests
.
post
(
url
,
json
=
payload
)
req
.
raise_for_status
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment