Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
e1bb5c7a
Commit
e1bb5c7a
authored
Mar 15, 2021
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: CircleCI missing builds with just Python
Solution: Add builds that install python packages and run tests
parent
1de68363
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
.circleci/config.yml
.circleci/config.yml
+29
-0
builds/bare_machines/ci_build.sh
builds/bare_machines/ci_build.sh
+2
-2
No files found.
.circleci/config.yml
View file @
e1bb5c7a
version
:
2.1
commands
:
jobs
:
test
:
parameters
:
...
...
@@ -16,6 +19,26 @@ jobs:
-
run
:
command
:
./ci_build.sh
install-python-and-test
:
parameters
:
python-version
:
type
:
string
machine
:
image
:
ubuntu-2004:202101-01
environment
:
BUILD_TYPE
:
bare_machines
PYTHON_VER
:
<< parameters.python-version >>
steps
:
-
run
:
command
:
sudo add-apt-repository ppa:deadsnakes/ppa
-
run
:
command
:
sudo apt-get update
-
run
:
command
:
sudo apt install -y build-essential python${PYTHON_VER}-dev
-
checkout
-
run
:
command
:
./ci_build.sh
workflows
:
tests-containers
:
jobs
:
...
...
@@ -31,4 +54,10 @@ workflows:
parameters
:
python-version
:
[
"
3.8"
]
build-type
:
[
"
debian_sys_container"
]
tests-ubuntu-machines
:
jobs
:
-
install-python-and-test
:
matrix
:
parameters
:
python-version
:
[
"
2.7"
,
"
3.5"
,
"
3.6"
,
"
3.7"
,
"
3.8"
,
"
3.9"
]
builds/bare_machines/ci_build.sh
View file @
e1bb5c7a
...
...
@@ -7,6 +7,6 @@ cd ../..
# Travis Python comes with preinstalled six
# which breaks test suite
pip uninstall
-y
six
||
true
python dev.py
pip
${
PYTHON_VER
}
uninstall
-y
six
||
true
python
${
PYTHON_VER
}
dev.py
bin/test
-c
-vvv
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