Newer
Older
# Gitlab CI Templates for WCM Modules/Themes
A set of CI templates and scripts used for CI/CD of WCM modules and themes.
### Composer Installation
- Add the wcm-osu repository to your composer.json.
```
"repositories": [
{
"type":"composer",
"url":"https://code.osu.edu/api/v4/group/5741/-/packages/composer/packages.json"
}
],
```
- Add code.osu.edu to the gitlab-domains setting in the config section of your composer.json.
```
"config": {
"gitlab-domains": [
"code.osu.edu"
]
}
```
user@host> composer require --dev wcm-osu/wcm_template_ci_site
```
- Copy scaffold/.gitlab-ci.yml to your module root.
- Adjust .gitlab-ci.yml as needed. Add the .ci directory and .gitlab-ci.yml to your repository. Commit and push to your module/theme repository.
### Manual Installation
- Copy the contents of this repository to a .ci directory in your module/theme root.
- Copy scaffold/.gitlab-ci.yml to your site root.
- Adjust .gitlab-ci.yml as needed. Add the .ci directory and .gitlab-ci.yml to your repository. Commit and push to your module/theme repository.