Changeset 726dfb4 in trunk
- Timestamp:
- 2020-08-11T23:10:33Z (5 years ago)
- Branches:
- master
- Children:
- 3c5f4f7, c21acc6, e0a52d8
- Parents:
- d087f04 (diff), 513177c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Jean-Paul Calderone <exarkun@…> (2020-08-11 23:10:33)
- git-committer:
- GitHub <noreply@…> (2020-08-11 23:10:33)
- Files:
-
- 1 added
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified .circleci/Dockerfile.centos ¶
rd087f04 r726dfb4 1 1 ARG TAG 2 2 FROM centos:${TAG} 3 ARG PYTHON_VERSION 3 4 4 5 ENV WHEELHOUSE_PATH /tmp/wheelhouse … … 12 13 sudo \ 13 14 make automake gcc gcc-c++ \ 14 python 2\15 python 2-devel \15 python${PYTHON_VERSION} \ 16 python${PYTHON_VERSION}-devel \ 16 17 libffi-devel \ 17 18 openssl-devel \ … … 24 25 COPY . ${BUILD_SRC_ROOT} 25 26 26 RUN "${BUILD_SRC_ROOT}"/.circleci/prepare-image.sh "${WHEELHOUSE_PATH}" "${VIRTUALENV_PATH}" "${BUILD_SRC_ROOT}" "python 2.7"27 RUN "${BUILD_SRC_ROOT}"/.circleci/prepare-image.sh "${WHEELHOUSE_PATH}" "${VIRTUALENV_PATH}" "${BUILD_SRC_ROOT}" "python${PYTHON_VERSION}" -
TabularUnified .circleci/Dockerfile.debian ¶
rd087f04 r726dfb4 1 1 ARG TAG 2 2 FROM debian:${TAG} 3 ARG PYTHON_VERSION 3 4 4 5 ENV WHEELHOUSE_PATH /tmp/wheelhouse … … 9 10 RUN apt-get --quiet update && \ 10 11 apt-get --quiet --yes install \ 11 12 12 git \ 13 lsb-release \ 13 14 sudo \ 14 15 python2.7\16 python2.7-dev \17 18 19 20 15 build-essential \ 16 python${PYTHON_VERSION} \ 17 python${PYTHON_VERSION}-dev \ 18 libffi-dev \ 19 libssl-dev \ 20 libyaml-dev \ 21 virtualenv 21 22 22 23 # Get the project source. This is better than it seems. CircleCI will … … 24 25 COPY . ${BUILD_SRC_ROOT} 25 26 26 RUN "${BUILD_SRC_ROOT}"/.circleci/prepare-image.sh "${WHEELHOUSE_PATH}" "${VIRTUALENV_PATH}" "${BUILD_SRC_ROOT}" "python 2.7"27 RUN "${BUILD_SRC_ROOT}"/.circleci/prepare-image.sh "${WHEELHOUSE_PATH}" "${VIRTUALENV_PATH}" "${BUILD_SRC_ROOT}" "python${PYTHON_VERSION}" 27 28 28 29 # Only the integration tests currently need this but it doesn't hurt to always -
TabularUnified .circleci/Dockerfile.fedora ¶
rd087f04 r726dfb4 1 1 ARG TAG 2 2 FROM fedora:${TAG} 3 ARG PYTHON_VERSION 3 4 4 5 ENV WHEELHOUSE_PATH /tmp/wheelhouse … … 12 13 sudo \ 13 14 make automake gcc gcc-c++ \ 14 python \15 python -devel \15 python${PYTHON_VERSION} \ 16 python${PYTHON_VERSION}-devel \ 16 17 libffi-devel \ 17 18 openssl-devel \ … … 24 25 COPY . ${BUILD_SRC_ROOT} 25 26 26 RUN "${BUILD_SRC_ROOT}"/.circleci/prepare-image.sh "${WHEELHOUSE_PATH}" "${VIRTUALENV_PATH}" "${BUILD_SRC_ROOT}" "python 2.7"27 RUN "${BUILD_SRC_ROOT}"/.circleci/prepare-image.sh "${WHEELHOUSE_PATH}" "${VIRTUALENV_PATH}" "${BUILD_SRC_ROOT}" "python${PYTHON_VERSION}" -
TabularUnified .circleci/Dockerfile.ubuntu ¶
rd087f04 r726dfb4 1 1 ARG TAG 2 2 FROM ubuntu:${TAG} 3 ARG PYTHON_VERSION 3 4 4 5 ENV WHEELHOUSE_PATH /tmp/wheelhouse … … 14 15 sudo \ 15 16 build-essential \ 16 python 2.7\17 python 2.7-dev \17 python${PYTHON_VERSION} \ 18 python${PYTHON_VERSION}-dev \ 18 19 libffi-dev \ 19 20 libssl-dev \ … … 27 28 COPY . ${BUILD_SRC_ROOT} 28 29 29 RUN "${BUILD_SRC_ROOT}"/.circleci/prepare-image.sh "${WHEELHOUSE_PATH}" "${VIRTUALENV_PATH}" "${BUILD_SRC_ROOT}" "python 2.7"30 RUN "${BUILD_SRC_ROOT}"/.circleci/prepare-image.sh "${WHEELHOUSE_PATH}" "${VIRTUALENV_PATH}" "${BUILD_SRC_ROOT}" "python${PYTHON_VERSION}" -
TabularUnified .circleci/config.yml ¶
rd087f04 r726dfb4 31 31 # Test against PyPy 2.7 32 32 - "pypy2.7-buster" 33 34 # Just one Python 3.6 configuration while the port is in-progress. 35 - "python3.6" 33 36 34 37 # Other assorted tasks and configurations … … 72 75 - "build-image-centos-8" 73 76 - "build-image-pypy-2.7-buster" 77 - "build-image-python36-ubuntu" 74 78 75 79 … … 119 123 debian-9: &DEBIAN 120 124 docker: 121 - image: "tahoelafsci/debian:9 "125 - image: "tahoelafsci/debian:9-py2.7" 122 126 user: "nobody" 123 127 … … 196 200 <<: *DEBIAN 197 201 docker: 198 - image: "tahoelafsci/debian:8 "202 - image: "tahoelafsci/debian:8-py2.7" 199 203 user: "nobody" 200 204 … … 203 207 <<: *DEBIAN 204 208 docker: 205 - image: "tahoelafsci/pypy: 2.7-buster"209 - image: "tahoelafsci/pypy:buster-py2" 206 210 user: "nobody" 207 211 … … 259 263 <<: *DEBIAN 260 264 docker: 261 - image: "tahoelafsci/ubuntu:16.04" 262 user: "nobody" 263 264 265 ubuntu-18.04: 266 <<: *DEBIAN 267 docker: 268 - image: "tahoelafsci/ubuntu:18.04" 269 user: "nobody" 265 - image: "tahoelafsci/ubuntu:16.04-py2.7" 266 user: "nobody" 267 268 269 ubuntu-18.04: &UBUNTU_18_04 270 <<: *DEBIAN 271 docker: 272 - image: "tahoelafsci/ubuntu:18.04-py2.7" 273 user: "nobody" 274 275 276 python3.6: 277 <<: *UBUNTU_18_04 278 docker: 279 - image: "tahoelafsci/ubuntu:18.04-py3" 280 user: "nobody" 281 282 environment: 283 <<: *UTF_8_ENVIRONMENT 284 TAHOE_LAFS_TOX_ENVIRONMENT: "py36" 270 285 271 286 … … 279 294 centos-8: &RHEL_DERIV 280 295 docker: 281 - image: "tahoelafsci/centos:8 "296 - image: "tahoelafsci/centos:8-py2" 282 297 user: "nobody" 283 298 … … 301 316 <<: *RHEL_DERIV 302 317 docker: 303 - image: "tahoelafsci/fedora:28 "318 - image: "tahoelafsci/fedora:28-py" 304 319 user: "nobody" 305 320 … … 308 323 <<: *RHEL_DERIV 309 324 docker: 310 - image: "tahoelafsci/fedora:29 "325 - image: "tahoelafsci/fedora:29-py" 311 326 user: "nobody" 312 327 … … 375 390 376 391 environment: 377 DISTRO: "tahoelafsci/<DISTRO>:foo" 378 TAG: "tahoelafsci/distro:<TAG>" 392 DISTRO: "tahoelafsci/<DISTRO>:foo-py2" 393 TAG: "tahoelafsci/distro:<TAG>-py2" 394 PYTHON_VERSION: "tahoelafsci/distro:tag-py<PYTHON_VERSION}" 379 395 380 396 steps: … … 428 444 build \ 429 445 --build-arg TAG=${TAG} \ 430 -t tahoelafsci/${DISTRO}:${TAG} \ 446 --build-arg PYTHON_VERSION=${PYTHON_VERSION} \ 447 -t tahoelafsci/${DISTRO}:${TAG}-py${PYTHON_VERSION} \ 431 448 -f ~/project/.circleci/Dockerfile.${DISTRO} \ 432 449 ~/project/ … … 434 451 name: "Push image" 435 452 command: | 436 docker push tahoelafsci/${DISTRO}:${TAG} 453 docker push tahoelafsci/${DISTRO}:${TAG}-py${PYTHON_VERSION} 437 454 438 455 … … 443 460 DISTRO: "debian" 444 461 TAG: "8" 462 PYTHON_VERSION: "2.7" 445 463 446 464 … … 451 469 DISTRO: "debian" 452 470 TAG: "9" 471 PYTHON_VERSION: "2.7" 453 472 454 473 … … 459 478 DISTRO: "ubuntu" 460 479 TAG: "16.04" 480 PYTHON_VERSION: "2.7" 461 481 462 482 … … 467 487 DISTRO: "ubuntu" 468 488 TAG: "18.04" 489 PYTHON_VERSION: "2.7" 490 491 492 build-image-python36-ubuntu: 493 <<: *BUILD_IMAGE 494 495 environment: 496 DISTRO: "ubuntu" 497 TAG: "18.04" 498 PYTHON_VERSION: "3" 469 499 470 500 … … 483 513 DISTRO: "centos" 484 514 TAG: "8" 515 PYTHON_VERSION: "2" 485 516 486 517 … … 491 522 DISTRO: "fedora" 492 523 TAG: "28" 524 # The default on Fedora (this version anyway) is still Python 2. 525 PYTHON_VERSION: "" 493 526 494 527 … … 506 539 environment: 507 540 DISTRO: "pypy" 508 TAG: "2.7-buster" 541 TAG: "buster" 542 # We only have Python 2 for PyPy right now so there's no support for 543 # setting up PyPy 3 in the image building toolchain. This value is just 544 # for constructing the right Docker image tag. 545 PYTHON_VERSION: "2" -
TabularUnified .circleci/populate-wheelhouse.sh ¶
rd087f04 r726dfb4 37 37 export PIP_FIND_LINKS="file://${WHEELHOUSE_PATH}" 38 38 39 # Populate the wheelhouse, if necessary. 40 "${PIP}" \ 39 # Populate the wheelhouse, if necessary. zfec 1.5.3 can only be built with a 40 # UTF-8 environment so make sure we have one, at least for this invocation. 41 LANG="en_US.UTF-8" "${PIP}" \ 41 42 wheel \ 42 43 --wheel-dir "${WHEELHOUSE_PATH}" \ -
TabularUnified .circleci/run-tests.sh ¶
rd087f04 r726dfb4 82 82 83 83 if [ -n "${ARTIFACTS}" ]; then 84 if [ ! -e "${SUBUNIT2}" ]; then 85 echo "subunitv2 output file does not exist: ${SUBUNIT2}" 86 exit 1 87 fi 88 84 89 # Create a junitxml results area. 85 90 mkdir -p "$(dirname "${JUNITXML}")" 86 ${BOOTSTRAP_VENV}/bin/subunit2junitxml < "${SUBUNIT2}" > "${JUNITXML}" || "${alternative}" 91 # Always succeed even if subunit2junitxml fails. subunit2junitxml signals 92 # failure if the stream it is processing contains test failures. This is 93 # not what we care about. If we cared about it, the test command above 94 # would have signalled failure already and we wouldn't be here. 95 "${BOOTSTRAP_VENV}"/bin/subunit2junitxml < "${SUBUNIT2}" > "${JUNITXML}" || true 87 96 fi -
TabularUnified misc/python3/ratchet.sh ¶
rd087f04 r726dfb4 12 12 # Since both of the next calls are expected to exit non-0, relax our guard. 13 13 set +e 14 SUBUNITREPORTER_OUTPUT_PATH="$base/results.subunit2" trial --reportersubunitv2-file allmydata15 subunit2junitxml < "$ base/results.subunit2" > "$base/results.xml"14 trial --reporter=subunitv2-file allmydata 15 subunit2junitxml < "${SUBUNITREPORTER_OUTPUT_PATH}" > "$base/results.xml" 16 16 set -e 17 17 … … 33 33 export TERM=ansi 34 34 fi 35 git diff "$tracking_filename"36 35 37 exit $code 36 echo "The ${tracking_filename} diff is:" 37 echo "=================================" 38 # "git diff" gets pretty confused in this execution context when trying to 39 # write to stdout. Somehow it fails with SIGTTOU. 40 git diff -- "${tracking_filename}" > tracking.diff 41 cat tracking.diff 42 echo "=================================" 43 44 echo "Exiting with code ${code} from ratchet.py." 45 exit ${code} -
TabularUnified tox.ini ¶
rd087f04 r726dfb4 51 51 [testenv:py36] 52 52 # On macOS, git inside of ratchet.sh needs $HOME. 53 passenv = HOME53 passenv = {[testenv]passenv} HOME 54 54 commands = {toxinidir}/misc/python3/ratchet.sh 55 55
Note: See TracChangeset
for help on using the changeset viewer.