Commit graph

53 commits

Author SHA1 Message Date
Matthew Waters
a9cd95f7ba gitlab: consolidate stages
This now optimizes for a successful build.
2019-06-13 06:08:01 +00:00
Thibault Saunier
3c5db7d449 Add support to build the documentation
Since we can't run valgrind tests on fedora 30 yet (see
https://gitlab.freedesktop.org/gstreamer/gst-ci/merge_requests/125),
we build the nodebug variant with the F30 image and use the artifacts
of that build to build the documentation and not the main one.
2019-05-15 18:29:32 -04:00
Thibault Saunier
68fa0afea7 Revert "Add support for building the doc"
This reverts commit 58861fd410.
2019-05-13 21:48:36 -04:00
Thibault Saunier
58861fd410 Add support for building the doc 2019-05-13 19:41:20 +00:00
Thibault Saunier
edd8ff52e3 ci: Run 'validate' and 'ges' integration testsuites
And use new validate feature to print debug logs URL directly
in the logs instead of dumping the whole files.
2019-04-03 19:13:21 -03:00
Matthew Waters
c4a3df759d add CI for gst-examples android build 2019-03-27 12:11:31 +11:00
Jordan Petridis
5fe97b9f1c
registry: Change the way in which images are tagged
Previously we tried using the git commit ref as a UID for the
images. This does not work though cause multiple jobs that rebuild
the image can be triggered and override the same image tag. Instead
use the CI_JOB_ID to provide better semantics wrt naming conflicts.

Additionally add the date as part of the tag to better indicate
the age of the image. Gitlab WEBGUI doens't indicate the age
in a good way nor makes it easy to short the images.
2019-03-26 17:18:24 +02:00
Matthew Waters
497415544b docker: add android-specific image
pre-includes the NDK/SDK
2019-03-26 04:00:57 +00:00
Jordan Petridis
0831f87561
gitlab/ci_template: refresh the image builds 2019-03-14 20:51:08 +02:00
Matthew Waters
775c0b3520 gitlab: remove the android gst-build target
android is now being tested using cerbero for the binaries we produce.
2019-03-13 13:00:01 -04:00
Nicolas Dufresne
4221153836 CI: Add Android universal builds 2019-03-13 10:35:00 -04:00
Nicolas Dufresne
ae80b863c3 gitlab: Move cerbero jobs in gst-ci
This will allow extending the CI at one place.
2019-03-12 22:56:21 -04:00
Nicolas Dufresne
b289400a04 Update docker hash
While cleaning up, I got confused since some docker were rebuilt without
but unused. So I broke the build, this should fix it.
2019-01-31 11:39:11 -05:00
Nicolas Dufresne
5a55d5103d CI: Add Win32 and Win64 cross builds 2019-01-08 10:31:19 -05:00
Xavier Claessens
aa13631e38 android: Use cross file shipped by gst-build
We want to test that cross files shipped by gst-build are working,
instead of a generating our own.
2018-12-13 17:08:16 +00:00
Xavier Claessens
791757de6c Rename 'android' docker image back to 'ubuntu'
There is no point in doing a different docker image for each build we
are going to do inside an Ubuntu distro. We can later use the same image
for native ubuntu builds, or other cross builds (e.g. android API 21,
etc).
2018-12-13 17:08:16 +00:00
Xavier Claessens
f7331ab4f8 Move Android NDK to /opt
It was installed in '/' which doesn't feel right. Installing it in /root
is also not correct because we want to run the build as user instead of
root in the future and cleanup.sh removes everything in /root. /opt
seems the best place because that's also the default location when
installing Android Studio.
2018-12-13 17:08:16 +00:00
Jordan Petridis
c8c9cad685 CI: Make the docker build and local jobs manual
While they are very useful, each time we create a branch,
gitlab tries to build all the images which is very resource
intesinve. Thus make all the local images and everything that
depends upon them a manual job and only trigger them before
merging an MR.
2018-12-11 21:34:08 +00:00
Jordan Petridis
7151af0270
ci_template.yml: Run the check test suite!!!
Add a fedora job that runs the 'check' tests with
gst-validate-launcher. Its fairly well abstracted so the same
template can be used to add the rest of the test-suites fairly
soon.
2018-12-10 14:45:56 +02:00
Nicolas Dufresne
b1e3b9e6ab gitlab: Add cerbero build template and x86_64 build 2018-12-09 19:12:07 +00:00
Nicolas Dufresne
f9435d7312 docker: Create Cerbero Fedora Docker 2018-12-09 19:12:07 +00:00
Thibault Saunier
bb2c819c77 Revert "Revert me" and fix test_manifest image to be used
This reverts commit 4717e446a9.
2018-12-07 02:52:34 +00:00
Jordan Petridis
96c5f89d79
CI: do not run local jobs for master branch
They are identical to the normal jobs
2018-12-06 15:43:43 +02:00
Thibault Saunier
4717e446a9 Revert me 2018-12-06 07:23:30 -03:00
Thibault Saunier
5aad1e149d Run test_manifest when the docker is changed 2018-12-06 07:23:30 -03:00
Jordan Petridis
06c76e1d63
CI: Update image uris 2018-12-01 15:20:38 +02:00
Jordan Petridis
6f7e01e1e3
Docker: fix a type in the test-manifest image 2018-12-01 13:17:46 +02:00
Jordan Petridis
8683c2940b
docker: add an image to run the tests of the manifest
So in the futuere we can avoid installing pytest each time
2018-11-30 20:43:39 +02:00
Jordan Petridis
e87e1fb6ca
docker: Add a new image for the gst-indent job
This is meant run GNU indent along with the gstreamer wrapper
through the codebase and error out for missconfigured code.

Part of https://gitlab.freedesktop.org/gstreamer/gstreamer-project/issues/33
2018-11-30 20:38:51 +02:00
Jordan Petridis
f085d34a32
docker: Move android into a unified image 2018-11-27 16:07:57 +02:00
Jordan Petridis
d17930eabb
docker: move the alpine image to a different directory 2018-11-27 14:29:36 +02:00
Jordan Petridis
72ec8cd33f
docker: Add a unified image for fedora
This is meant to replace both the runtime and build images.
Spliting it in two increasing the maintainance required without
any big benefits.
2018-11-27 14:29:36 +02:00
Jordan Petridis
3cc8d5efb5 Docker registry: only tag images for the upstream repository
The tags are only used to version the images that are meant
to be used in the gitlab/ci_template.yml file. Thus tags are
not needed when you hack on a patch from a forked repository.
Lets just keep a :latest tag.
2018-11-26 12:51:39 +00:00
Jordan Petridis
e89fad1455
gitlab/ci_template.yml: rework the CI stages
Idea is that in order to not consume many resources for broken
builds, we will have a basic stage where just one simple set of
build and test jobs is run. If that passes we will continue with
the rest of the Pipeline suite.
2018-11-23 20:48:54 +02:00
Jordan Petridis
2bb429bbf0
gitlab/ci_template.yml: add dependencies block to the .build template 2018-11-23 19:05:12 +02:00
Jordan Petridis
67fcaad29e
Revert "Avoid duplication between ci_template.yml and .gitlab-ci.yml"
This reverts commit 6bdd1ead99.

This does not actually avoid duplication... [1]

[1] 6bdd1ead99 (note_81275)
2018-11-23 19:05:12 +02:00
Xavier Claessens
6bdd1ead99 Avoid duplication between ci_template.yml and .gitlab-ci.yml 2018-11-22 16:51:31 -05:00
Xavier Claessens
68a71431b8 Build Ubuntu base image 2018-11-22 13:24:26 -05:00
Xavier Claessens
71b1b352ee Build ubuntu runtime docker 2018-11-22 11:37:51 -05:00
Jordan Petridis
03a1e07fa3
CI: remove duplicate entry 2018-11-22 16:26:35 +02:00
Jordan Petridis
9b45a95fe0
CI: only build the images that changed
previously when something in the docker/ direcotry was changed,
all of the images would be rebuilt.
2018-11-22 16:26:34 +02:00
Jordan Petridis
cc5ff7d8f0
CI: Test both the ci_template as well as local changes
Instead of just overwritting the template build jobs, test both
so we avoid regressions.

See [1] for more

[1] 1858a709e6
2018-11-22 16:26:34 +02:00
Thibault Saunier
7ede1f54aa Add a simple alpine based Dockerfile for images to build manifest 2018-11-13 16:51:36 +00:00
Thibault Saunier
529764a3d7 gitlab: ci: Run build_manifest tests only if the script changes 2018-11-13 16:51:36 +00:00
Jordan Petridis
2ec33592e9
CI: Use the correct bash syntax
345afee677 broke the bash
extreppsion that evaluates the strings, causing images to
never be pushed.
2018-11-12 18:01:00 +02:00
Jordan Petridis
8fbce56d69
CI: Change the push policy of the docker images
If we are in a fork of the project, we would like to be able
to overwrite the `:latest` tag if the registry from any branch
so we won't have to manually overwrite the image tag in the
build/test jobs in the .gitlab-ci.yml file
2018-11-12 15:54:23 +02:00
Jordan Petridis
345afee677
CI: Overwrite the build job from the template
Make it so when we build a new image in `gst-ci` it gets
picked up automatically by the job in this repo. For the template
itself we want the images to me be versioned and reproducible.
2018-11-12 15:54:23 +02:00
Nicolas Dufresne
64e3b154cd gitlab-ci: Only run scripts test on related code
Right now we only have one test against build_manifest.py, it
is not needed to run this test if that code haven't changed.
It's really easy to add more file or set a wild card in the
future.
2018-11-10 20:35:10 -05:00
Nicolas Dufresne
ba98b4138a gitlab-ci: Use quote for "test" stage
This is just for consistency, no really needed.
2018-11-10 20:34:21 -05:00
Thibault Saunier
8b34f1e9f6 Also run the main CI template in .gitlab-ci.yml
Rename some job otherwise some names where too similare.
2018-11-09 20:45:08 -03:00