Craft build process to reveal the negative testing and focus on packaging jobs

This commit is contained in:
Adrien Ferrand 2020-11-11 21:58:08 +01:00
parent 4aeda88633
commit 7e05feaf8d
6 changed files with 11 additions and 15 deletions

View file

@ -144,7 +144,7 @@ jobs:
git config --global user.name "$(Build.RequestedFor)"
mkdir -p ~/.local/share/snapcraft/provider/launchpad
cp $(credentials.secureFilePath) ~/.local/share/snapcraft/provider/launchpad/credentials
python3 tools/snap/build_remote.py ALL --archs ${ARCHS}
python3 tools/snap/build_remote.py certbot --archs ${ARCHS}
displayName: Build snaps
- script: |
set -e

View file

@ -1,6 +1,6 @@
stages:
- stage: TestAndPackage
jobs:
- template: ../jobs/standard-tests-jobs.yml
- template: ../jobs/extended-tests-jobs.yml
# - template: ../jobs/standard-tests-jobs.yml
# - template: ../jobs/extended-tests-jobs.yml
- template: ../jobs/packaging-jobs.yml

View file

@ -75,6 +75,7 @@ parts:
build-environment:
- SNAPCRAFT_PYTHON_VENV_ARGS: --system-site-packages
- PIP_CONSTRAINT: $SNAPCRAFT_PART_SRC/snap-constraints.txt
- PIP_NO_BINARY: cryptography
override-pull: |
snapcraftctl pull
cd $SNAPCRAFT_PART_SRC

View file

@ -41,6 +41,6 @@ RUN apk add --no-cache --virtual .build-deps \
openssl-dev \
musl-dev \
libffi-dev \
&& python tools/pipstrap.py \
&& python tools/pip_install_editable.py src/acme src/certbot \
#&& python tools/pipstrap.py \
&& PIP_NO_BINARY=cryptography python tools/pip_install_editable.py src/acme src/certbot \
&& apk del .build-deps

View file

@ -7,12 +7,6 @@
# An older version of setuptools is currently used here in order to keep
# compatibility with Python 2 since newer versions of setuptools have dropped
# support for it.
pip==20.2.4 \
--hash=sha256:51f1c7514530bd5c145d8f13ed936ad6b8bfcb8cf74e10403d0890bc986f0033 \
--hash=sha256:85c99a857ea0fb0aedf23833d9be5c40cf253fe24443f0829c7b472e23c364a1
setuptools==44.1.1 \
--hash=sha256:27a714c09253134e60a6fa68130f78c7037e5562c4f21f8f318f2ae900d152d5 \
--hash=sha256:c67aa55db532a0dadc4d2e20ba9961cbd3ccc84d544e9029699822542b5a476b
wheel==0.35.1 \
--hash=sha256:497add53525d16c173c2c1c733b8f655510e909ea78cc0e29d374243544b77a2 \
--hash=sha256:99a22d87add3f634ff917310a3d87e499f19e663413a52eb9232c447aa646c9f
pip==20.2.4
setuptools==99.99.0
wheel==0.35.1

View file

@ -56,7 +56,8 @@ def _compile_wheels(repo_path, build_path, venv_python):
def _prepare_build_tools(venv_path, venv_python, repo_path):
print('Prepare build tools')
subprocess.check_call([sys.executable, '-m', 'venv', venv_path])
subprocess.check_call([venv_python, os.path.join(repo_path, 'tools', 'pipstrap.py')])
#subprocess.check_call([venv_python, os.path.join(repo_path, 'tools', 'pipstrap.py')])
subprocess.check_call([venv_python, '-m', 'pip', 'install', '--upgrade', 'pip==20.2.4', 'setuptools==44.1.1', 'wheel==0.35.1'])
subprocess.check_call([venv_python, os.path.join(repo_path, 'tools', 'pip_install.py'), 'pynsist'])
subprocess.check_call(['choco', 'upgrade', '--allow-downgrade', '-y', 'nsis', '--version', NSIS_VERSION])