Set up compile contexts and options flags in a single function.

.gitlab-ci.yml not found in this commit