summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
Commit message (Collapse)AuthorAgeFilesLines
...
* | azure/gitlab: Update to Docker to have SDL2 availableTom Rini2020-02-071-1/+1
| | | | | | | | | | | | | | Update to a newer Docker image that contains SDL2 libraries as required by recent Sandbox changes. Signed-off-by: Tom Rini <trini@konsulko.com>
* | gitlab: use our own GRUBHeinrich Schuchardt2020-02-071-5/+4
|/ | | | | | | | | Up to now we have been relying on openSUSE repositories for GRUB on arm and arm64 though we have included GRUB in our Docker image. Use the GRUB included in our Docker image. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* gitlab/azure: Update to latest container tagTom Rini2020-01-201-1/+1
| | | | | | | - Based on bionic-20200112 tag from Ubuntu - Add graphviz (Heinrich) Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab/azure: Update to latest containerTom Rini2020-01-101-1/+1
| | | | | | | - Updated base snapshot - QEMU v4.2.0 Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab/azure: Enable LLVM testsTom Rini2019-11-061-0/+8
| | | | | | | Now that we have again fixed the problems that building with clang exposes, enable these tests on Azure and GitLab-CI as well. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab/travis: Rework how and when we use virtualenv in order to use python3Tom Rini2019-10-301-6/+4
| | | | | | | | | | | | | | | | | As things stand today, we have tools that CI requires where "python" must be "python2". We need to use a virtualenv and pip in order to ensure that our pytest tests can be run. Rework things slightly so that: - On Travis-CI, we install python-pyelftools for the platforms that require pyelftools to be installed. - On GitLab-CI, we move to a newer base image that includes python3-pip and continue to use a virtualenv per job that needs it, for the correct set of packages. Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com>
* test/py: Fix pytest4 deprecation warningsMarek Vasut2019-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | Fix the following spit from pytest: u-boot/test/py/conftest.py:438: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly. Please use node.get_closest_marker(name) or node.iter_markers(name). Docs: https://docs.pytest.org/en/latest/mark.html#updating-code for board in mark.args: In both cases, the later suggestion is applicable. Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Igor Opaniuk <igor.opaniuk@gmail.com> [trini: Update for current file with a few more cases, un-pin pytest in CI] Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Prepend to PATH rather than replace itTom Rini2019-10-301-1/+1
| | | | | | | | | | | | Currently we set the entire PATH rather than prepend the new paths that we need to have searched. This however breaks parts of the "virtualenv" that was have set up and need to use as that also will be modifying PATH. To fix this, prepend our new locations instead. Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Fix indentation in some stanzasTom Rini2019-10-301-20/+20
| | | | | | | | | | In a number of our stanzas we had multi-line commands that were one space short of alignment, correct this. Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Switch to Ubuntu 18.04 imageTom Rini2019-10-081-3/+4
| | | | | | | | | In order to run all filesystem tests we need to have newer ext4 tools, move up to Ubuntu 18.04 'bionic' for our base. We need to change slightly how we invoke the provided grub-mkimage. This will also make future python3 work easier. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Have buildman use /tmp for outputTom Rini2019-10-081-13/+13
| | | | | | | | When running as another user we might not be able to use '..' for certain directories and this is the default for buildman. Specify an output directory instead. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: fix typo 'plaforms'Heinrich Schuchardt2019-10-061-4/+4
| | | | | | | %s/plaforms/platforms/g Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* ci: add envtools supportPierre-Jean Texier2019-09-241-0/+7
| | | | | | | | | This commit add envtools suppport to CI to verify if there is no build issues. Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Acked-by: Heiko Schocher <hs@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
* gitlab-ci: Consolidate some testsuite jobsTom Rini2019-08-121-27/+15
| | | | | | | We do not need to split binman, buildman, dtoc and patman test suite runs into 3 jobs. Instead, run them as a single job. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Add USER environment variable to buildman/patman testsTom Rini2019-08-121-0/+2
| | | | | | | | The way that some of the tests here are designed, they expect USER to be set in the environment. This is not the case in the docker images, so set a reasonable value. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Add qemu-riscv64 testingTom Rini2019-08-021-1/+9
| | | | | | | Mirror the qemu-riscv64 testing we do on Travis. Update to a newer Docker image that contains riscv64-softmmu for QEMU. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Remove unused TOOLCHAIN environment variableTom Rini2019-08-021-8/+0
| | | | | | | | | As part of copying the logic from Travis to GitLab I kept the TOOLCHAIN variable. However we don't use that now as the Docker container already has all toolchains so we don't need to do any downloading. Remove this variable. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Switch to a Docker image that contains a QEMU we buildTom Rini2019-07-291-31/+5
| | | | | | | Rather than buiding QEMU for each test.py build it once in our Dockerfile and re-use it as needed. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Update Docker image to xenial-20190720-24Jul2019 tagTom Rini2019-07-241-1/+1
| | | | | | | | - Add in lzma-alone for current binman tests - Update to Ubuntu's xenial-20190720 tag (latest). Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* gitlab-ci: Add pyelftools to the binman testsuite sectionTom Rini2019-07-241-0/+3
| | | | | | | We need pyelftools here to run rather than skip some tests. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* binman: Convert to use ArgumentParserSimon Glass2019-07-241-1/+1
| | | | | | | | This class is the new way to handle arguments in Python. Convert binman over to use it. At the same time, introduce commands so that we can separate out the different parts of binman functionality. Signed-off-by: Simon Glass <sjg@chromium.org>
* binman: Pass the toolpath to testsSimon Glass2019-07-241-1/+1
| | | | | | | | | | Tools like ifwitool may not be available in the PATH, but are available in the build. These tools may be needed by tests, so allow tests to use the --toolpath flag. Also use this flag with travis. Signed-off-by: Simon Glass <sjg@chromium.org>
* gitlab-ci: Move the pyelfutils sectionTom Rini2019-07-181-1/+3
| | | | | | | We need this for building some 64bit ARM platforms, not for test.py runs. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Split the world build into 4 jobsTom Rini2019-07-181-2/+35
| | | | | | | | | | | | To better allow for parallelization of the world build job split things into 32bit ARM (687 boards), 64bit ARM (215), PowerPC (311 boards) and everything else (167 boards). While the 32bit ARM job is heavier than I would like, there is not a natural split that would reduce it in half or so without requiring the sort of hard to maintain splits we have to do in Travis CI. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Add pyelftools when neededTom Rini2019-07-181-0/+1
| | | | | | | In order to mirror current Travis CI support we need to install this package via pip. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Add evb-ast2500 test.py testTom Rini2019-07-181-0/+10
| | | | | | Bring us back into line with current Travis tests. Signed-off-by: Tom Rini <trini@konsulko.com>
* gitlab-ci: Initial conversion of Travis CI build to GitLab CITom Rini2019-07-181-0/+315
Migrate all of the logic in our current .travis.yml file to a GitLab CI config file. Notable changes are that this will run the jobs on runners with the "all" tag. The timeout for a job needs to be configured higher than normal as we no longer split building the world up into a large number of small jobs but instead perform one big build job. We make use of stages so that we build and run all of the QEMU + test.py tests first in order to increase the chance that any problems will be found before starting the final big build. Signed-off-by: Tom Rini <trini@konsulko.com>