Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
196
Issues
196
List
Boards
Labels
Service Desk
Milestones
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
38920087
Commit
38920087
authored
Jan 03, 2021
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove CI scripts
They are now loaded from the ci repo
parent
333eed68
Pipeline
#7027
passed with stages
in 7 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
84 deletions
+0
-84
scripts/ci/appveyor.py
scripts/ci/appveyor.py
+0
-22
scripts/ci/sdist.py
scripts/ci/sdist.py
+0
-62
No files found.
scripts/ci/appveyor.py
deleted
100755 → 0
View file @
333eed68
#!/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
()
scripts/ci/sdist.py
deleted
100755 → 0
View file @
333eed68
#!/usr/bin/env python3
import
os
import
io
import
zipfile
import
subprocess
import
shutil
from
pathlib
import
Path
import
requests
PLUGINS
=
[
'plugin_installer'
,
]
PLUGINS_BASE_URL
=
'https://ftp.gajim.org'
PLUGINS_FOLDER
=
Path
(
'./gajim/data/plugins'
)
COMMIT_BRANCH
=
os
.
environ
[
'CI_COMMIT_BRANCH'
]
def
get_plugins_folder
():
if
COMMIT_BRANCH
==
'master'
:
return
'plugins_master_zip'
version
=
COMMIT_BRANCH
.
split
(
'_'
)[
1
]
return
f'plugins_
{
version
}
_zip'
def
get_plugins_url
(
plugin
):
folder
=
get_plugins_folder
()
return
f'
{
PLUGINS_BASE_URL
}
/
{
folder
}
/
{
plugin
}
.zip'
def
extraxt_zip
(
zip_bytes
,
path
):
print
(
'Extract to'
,
path
)
with
zipfile
.
ZipFile
(
io
.
BytesIO
(
zip_bytes
))
as
zip_file
:
zip_file
.
extractall
(
path
)
def
download_plugins
():
PLUGINS_FOLDER
.
mkdir
(
parents
=
True
)
for
plugin
in
PLUGINS
:
url
=
get_plugins_url
(
plugin
)
print
(
'Download'
,
url
)
req
=
requests
.
get
(
url
)
req
.
raise_for_status
()
extraxt_zip
(
req
.
content
,
PLUGINS_FOLDER
)
def
setup
():
print
(
'Setup'
)
subprocess
.
call
([
'python3'
,
'setup.py'
,
'sdist'
])
def
cleanup
():
print
(
'Cleanup'
)
shutil
.
rmtree
(
PLUGINS_FOLDER
)
download_plugins
()
setup
()
cleanup
()
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