Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
package_control_channel
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
package_control_channel
Commits
53ecec67
Unverified
Commit
53ecec67
authored
May 31, 2017
by
FichteFoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor adjustments to CI script
- check for http:// urls in added repositories - typos
parent
eda8946a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
ci.py
tests/ci.py
+9
-3
No files found.
tests/ci.py
View file @
53ecec67
...
...
@@ -148,7 +148,13 @@ if added_repositories:
if
not
repo
.
startswith
(
'http://'
)
and
not
repo
.
startswith
(
'https://'
):
print
(
'Skipping repository since it is local:
%
s'
%
repo
)
continue
print
(
'Fetching repository:
%
s'
%
repo
)
if
repo
.
startswith
(
'http://'
):
errors
=
True
print
(
' ERROR: External repositories added to the default channel must be served over HTTPS'
)
# Continue with testing regardless
raw_data
=
requests
.
get
(
repo
)
.
content
try
:
raw_data
=
raw_data
.
decode
(
'utf-8'
)
...
...
@@ -276,13 +282,13 @@ try:
if
not
info
[
'releases'
]:
errors
=
True
print
(
' ERROR: No releases found
,
check to ensure you have created a valid semver tag'
)
print
(
' ERROR: No releases found
;
check to ensure you have created a valid semver tag'
)
print
(
' https://packagecontrol.io/docs/submitting_a_package#Step_4'
)
else
:
for
release_source
in
data
[
'releases'
]:
if
'branch'
in
release_source
:
errors
=
True
print
(
' ERROR: Branch-based releases are not supported for new packages
,
please use "tags": true'
)
print
(
' ERROR: Branch-based releases are not supported for new packages
;
please use "tags": true'
)
print
(
' https://packagecontrol.io/docs/submitting_a_package#Step_4'
)
if
set
(
release_source
.
get
(
'platforms'
,
[]))
==
{
'windows'
,
'osx'
,
'linux'
}:
errors
=
True
...
...
@@ -319,7 +325,7 @@ try:
if
last_path
and
len
(
root_level_paths
)
==
0
:
root_level_paths
.
append
(
last_path
[
0
:
last_path
.
find
(
'/'
)
+
1
])
# If there is only a single directory at the top leve, the file
# If there is only a single directory at the top leve
l
, the file
# is most likely a zip from BitBucket or GitHub and we need
# to skip the top-level dir when extracting
skip_root_dir
=
len
(
root_level_paths
)
==
1
and
\
...
...
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