* [U-Boot] [PATCH] azure: Update for python3 and current pytest
@ 2019-11-01 13:33 Tom Rini
2019-11-01 13:33 ` Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2019-11-01 13:33 UTC (permalink / raw)
To: u-boot
Similar to the rework for GitLab-CI and Travis-CI, rework the Azure
Pipeline to use python3 and requirements.txt to install the necessary
modules.
Signed-off-by: Tom Rini <trini@konsulko.com>
---
.azure-pipelines.yml | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index d476d8d0e94d..11d5a6175b0f 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -1,7 +1,7 @@
variables:
windows_vm: vs2015-win2012r2
ubuntu_vm: ubuntu-18.04
- ci_runner_image: trini/u-boot-gitlab-ci-runner:bionic-20190912.1-03Oct2019
+ ci_runner_image: trini/u-boot-gitlab-ci-runner:bionic-20191010-20Oct2019
# Add '-u 0' options for Azure pipelines, otherwise we get "permission
# denied" error when it tries to "useradd -m -u 1001 vsts_azpcontainer",
# since our $(ci_runner_image) user is not root.
@@ -245,11 +245,6 @@ jobs:
git clone --depth=1 git://github.com/swarren/uboot-test-hooks.git /tmp/uboot-test-hooks
ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
- virtualenv /tmp/venv
- . /tmp/venv/bin/activate
- pip install pytest==2.8.7
- pip install python-subunit
- pip install coverage
grub-mkimage --prefix=\"\" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
grub-mkimage --prefix=\"\" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
mkdir ~/grub2-arm
@@ -266,6 +261,9 @@ jobs:
exit $ret;
fi;
fi
+ virtualenv -p /usr/bin/python3 /tmp/venv
+ . /tmp/venv/bin/activate
+ pip install -r test/py/requirements.txt
export UBOOT_TRAVIS_BUILD_DIR=/tmp/.bm-work/${TEST_PY_BD};
export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:/usr/bin:/bin;
export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] azure: Update for python3 and current pytest
2019-11-01 13:33 [U-Boot] [PATCH] azure: Update for python3 and current pytest Tom Rini
@ 2019-11-01 13:33 ` Tom Rini
2019-11-01 16:59 ` Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2019-11-01 13:33 UTC (permalink / raw)
To: u-boot
On Fri, Nov 01, 2019 at 09:33:23AM -0400, Tom Rini wrote:
> Similar to the rework for GitLab-CI and Travis-CI, rework the Azure
> Pipeline to use python3 and requirements.txt to install the necessary
> modules.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191101/10e0eeff/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] azure: Update for python3 and current pytest
2019-11-01 13:33 ` Tom Rini
@ 2019-11-01 16:59 ` Tom Rini
0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2019-11-01 16:59 UTC (permalink / raw)
To: u-boot
On Fri, Nov 01, 2019 at 09:33:49AM -0400, Tom Rini wrote:
> On Fri, Nov 01, 2019 at 09:33:23AM -0400, Tom Rini wrote:
>
> > Similar to the rework for GitLab-CI and Travis-CI, rework the Azure
> > Pipeline to use python3 and requirements.txt to install the necessary
> > modules.
> >
> > Signed-off-by: Tom Rini <trini@konsulko.com>
>
> Applied to u-boot/master, thanks!
But I missed that it wasn't enough in all my testing branches yesterday.
I see now that Azure copied the Travis/GitLab problem of overriding PATH
not prepending PATH and so virtualenv PATH changes are wiped out, I'll
fix this in a moment.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191101/1b688e11/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-01 16:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01 13:33 [U-Boot] [PATCH] azure: Update for python3 and current pytest Tom Rini
2019-11-01 13:33 ` Tom Rini
2019-11-01 16:59 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.