Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
python-compile
Commits
f695b7af
Commit
f695b7af
authored
Jun 18, 2020
by
EKbfh
🐼
Browse files
upload only on master
parent
55ce7a80
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f695b7af
...
...
@@ -10,6 +10,26 @@ variables:
COMPILE_FLAGS_DEB
:
"
--with-system-ffi
--with-computed-gotos
--enable-loadable-sqlite-extensions"
COMPILE_FLAGS_RPM
:
"
--with-system-ffi
--with-computed-gotos
--enable-loadable-sqlite-extensions"
# RedHat Family
compile_RedHat
:
extends
:
.base_compile
image
:
centos:7
script
:
-
mkdir -p /opt/python$PYTHON_VERSION_3_8
-
>
yum update -y -q && yum install -y -q
curl make
gcc openssl-devel bzip2-devel libffi-devel sqlite-devel cmake
gdbm-devel xz-devel readline-devel ncurses-devel zlib-devel
-
curl -o /tmp/python.tar.gz https://www.python.org/ftp/python/$PYTHON_VERSION_3_8/Python-$PYTHON_VERSION_3_8.tgz
-
tar -zxf /tmp/python.tar.gz -C /opt
-
cd /opt/Python-$PYTHON_VERSION_3_8
-
./configure --prefix=/opt/python$PYTHON_VERSION_3_8 --enable-optimizations $COMPILE_FLAGS_RPM
-
make -s
-
make install
-
/opt/python$PYTHON_VERSION_3_8/bin/python3 -V ||
true
-
tar czf "${CI_PROJECT_DIR}/python${PYTHON_VERSION_3_8}.tar.gz" -C /opt/python$PYTHON_VERSION_3_8/ .
.base_compile
:
stage
:
compile
image
:
debian:10
...
...
@@ -58,26 +78,6 @@ compile_Ubuntu_20:
extends
:
.base_compile
image
:
ubuntu:20.04
# RedHat Family
compile_RedHat
:
extends
:
.base_compile
image
:
centos:7
script
:
-
mkdir -p /opt/python$PYTHON_VERSION_3_8
-
>
yum update -y -q && yum install -y -q
curl make
gcc openssl-devel bzip2-devel libffi-devel sqlite-devel cmake
gdbm-devel xz-devel readline-devel ncurses-devel zlib-devel
-
curl -o /tmp/python.tar.gz https://www.python.org/ftp/python/$PYTHON_VERSION_3_8/Python-$PYTHON_VERSION_3_8.tgz
-
tar -zxf /tmp/python.tar.gz -C /opt
-
cd /opt/Python-$PYTHON_VERSION_3_8
-
./configure --prefix=/opt/python$PYTHON_VERSION_3_8 --enable-optimizations $COMPILE_FLAGS_RPM
-
make
-
make install
-
/opt/python$PYTHON_VERSION_3_8/bin/python3 -V ||
true
-
tar czf "${CI_PROJECT_DIR}/python${PYTHON_VERSION_3_8}.tar.gz" -C /opt/python$PYTHON_VERSION_3_8/ .
.base_upload
:
stage
:
upload
image
:
registry.getnoc.com/infrastructure/s3helper:master
...
...
@@ -85,6 +85,9 @@ compile_RedHat:
-
sha1sum python${PYTHON_VERSION_3_8}.tar.gz | awk '{ print $1 }' > python${PYTHON_VERSION_3_8}.tar.gz_SHA1SUMS
tags
:
-
docker
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
when
:
always
upload_RedHat
:
extends
:
.base_upload
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment