Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup gitlab CI to run tests and validation #231

Open
jna-unikent opened this issue Dec 14, 2017 · 3 comments
Open

Setup gitlab CI to run tests and validation #231

jna-unikent opened this issue Dec 14, 2017 · 3 comments
Assignees

Comments

@jna-unikent
Copy link
Contributor

As discussed with @samyapp and @christiancable, it is worth setting up Travis CI to run our test and validation suite until a time when we migrate to gitlab.

@jna-unikent jna-unikent self-assigned this Dec 14, 2017
@jna-unikent
Copy link
Contributor Author

We decided on Friday to pursue setting up gitlab CI instead, especially since there seems to be issues pulling down private dependencies.

@jna-unikent jna-unikent changed the title Setup travis CI to run tests and validation Setup gitlab CI to run tests and validation Dec 18, 2017
@jna-unikent
Copy link
Contributor Author

@christiancable and I have managed to get Gitlab CI running the schema validation and phpunit tests. The code that got it working can be found here: https://gitlab.kent.ac.uk/jna/astro/merge_requests/227.

Example of test passing: https://gitlab.kent.ac.uk/jna/astro/-/jobs/9102

To access non-public repositories (and some github ones), we had to generate Personal Access Tokens, setting them as environmental variables (https://gitlab.kent.ac.uk/jna/astro/settings/ci_cd see the secret variables section), and passing them to composer and packagist to use.

The current docker container being used was one built by Dom (https://hub.docker.com/r/domoconnor/gitlab-ci/). It runs php5.6. We will probably need to build one with php7.1 at some point.

@jna-unikent
Copy link
Contributor Author

I have now added some new docker images (https://gitlab.kent.ac.uk/jna/astro/container_registry) built from the scripts in our docker repo (https://gitlab.kent.ac.uk/webdev/docker).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant