4b9fc09a1c
The original idea was that we'd have a "python27" job. But it turns out that "python27" isn't actually as universal as you might think. "tox-py27" on the other hand is a thing that can and should always work for people who want to run tox with the py27 env. Port in the jobs we had in openstack-zuul-jobs. Also, copy in the text of the old shell scripts so that we can iterate on them and make them better piecemeal. These are named zuul-tox not tox because we already have tox jobs defined elsewhere. We'll need to do the naming dance while we work on them. Change-Id: I813f3f2ae138c07918556bc81655518023527131
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
- name: Build a tarball
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}"
|
|
shell: |
|
|
#!/bin/bash -xe
|
|
|
|
# Copyright 2013 OpenStack Foundation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
venv={{ tox_environment }}
|
|
|
|
export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt
|
|
|
|
rm -f dist/*.tar.gz
|
|
tox -e$venv python setup.py sdist
|
|
|
|
FILES=dist/*.tar.gz
|
|
for f in $FILES; do
|
|
echo "SHA1sum for $f:"
|
|
sha1sum $f | awk '{print $1}' > $f.sha1
|
|
cat $f.sha1
|
|
|
|
echo "MD5sum for $f:"
|
|
md5sum $f | awk '{print $1}' > $f.md5
|
|
cat $f.md5
|
|
done
|