|
| 1 | +<html> |
| 2 | +<head> |
| 3 | + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
| 4 | +</head> |
| 5 | +<body> |
| 6 | + <header> |
| 7 | + <div class="navbar navbar-light bg-light box-shadow"> |
| 8 | + <div class="container d-flex justify-content-between"> |
| 9 | + <a href="/" class="navbar-brand d-flex align-items-center"> |
| 10 | + <img src="/kool-logo.png" width="200"> <strong>CI/CD</strong> |
| 11 | + </a> |
| 12 | + </div> |
| 13 | + </div> |
| 14 | + </header> |
| 15 | + |
| 16 | + <main role="main"> |
| 17 | + <section class="jumbotron text-center"> |
| 18 | + <div class="container"> |
| 19 | + <h1 class="jumbotron-heading">Laravel continuous integration on Gitlab CI</h1> |
| 20 | + <p class="lead text-muted">A few usual build and quality assurante routines, with static analysis and validation for the PHP code and Laravel best practices.</p> |
| 21 | + <p> |
| 22 | + <a href="https://kool.dev" target="_blank" class="btn btn-primary btn-sm my-2">Powered by Kool</a> |
| 23 | + </p> |
| 24 | + <p> |
| 25 | + <a href="assets.yml" class="btn btn-secondary btn-sm my-2">assets.yml</a> |
| 26 | + <a href="cs-fixer.yml" class="btn btn-secondary btn-sm my-2">cs-fixer.yml</a> |
| 27 | + <a href="dusk.yml" class="btn btn-secondary btn-sm my-2">dusk.yml</a> |
| 28 | + <a href="eslint.yml" class="btn btn-secondary btn-sm my-2">eslint.yml</a> |
| 29 | + <a href="phan.yml" class="btn btn-secondary btn-sm my-2">phan.yml</a> |
| 30 | + <a href="phpcpd.yml" class="btn btn-secondary btn-sm my-2">phpcpd.yml</a> |
| 31 | + <a href="phpmd.yml" class="btn btn-secondary btn-sm my-2">phpmd.yml</a> |
| 32 | + <a href="phpmnd.yml" class="btn btn-secondary btn-sm my-2">phpmnd.yml</a> |
| 33 | + <a href="phpunit.yml" class="btn btn-secondary btn-sm my-2">phpunit.yml</a> |
| 34 | + <a href="security-check.yml" class="btn btn-secondary btn-sm my-2">security-check.yml</a> |
| 35 | + <a href="vendor.yml" class="btn btn-secondary btn-sm my-2">vendor.yml</a> |
| 36 | + </p> |
| 37 | + </section> |
| 38 | + </div> |
| 39 | + </main> |
| 40 | + |
| 41 | + <section> |
| 42 | + <div class="container" style="margin-bottom: 5em;"> |
| 43 | + <h3>Gitlab CI configuration for a Laravel application running with Kool.dev</h3> |
| 44 | + |
| 45 | + <p>The example below can be used to run Gitlab CI jobs for your Laravel application.</p> |
| 46 | + <p><b>Requirements:</b> all jobs have a <i>dind</i> tag which is meant to indicate a pre-configured Gitlab Runner on your repository that can Docker-in-Docker jobs.</p> |
| 47 | + |
| 48 | + <p><b>.gitlab-ci.yml</b></p> |
| 49 | + |
| 50 | + <div style="margin: 1em 5em; padding: 1em;" class="bg-dark"> |
| 51 | + <pre class="text-light"> |
| 52 | +include: |
| 53 | + - https://ci.kool.dev/laravel/gitlab/vendor.yml |
| 54 | + - https://ci.kool.dev/laravel/gitlab/assets.yml |
| 55 | + - https://ci.kool.dev/laravel/gitlab/eslint.yml |
| 56 | + - https://ci.kool.dev/laravel/gitlab/security-check.yml |
| 57 | + - https://ci.kool.dev/laravel/gitlab/cs-fixer.yml |
| 58 | + - https://ci.kool.dev/laravel/gitlab/phpmnd.yml |
| 59 | + - https://ci.kool.dev/laravel/gitlab/phpmd.yml |
| 60 | + - https://ci.kool.dev/laravel/gitlab/phpcpd.yml |
| 61 | + - https://ci.kool.dev/laravel/gitlab/phan.yml |
| 62 | + - https://ci.kool.dev/laravel/gitlab/dusk.yml |
| 63 | + - https://ci.kool.dev/laravel/gitlab/phpunit.yml |
| 64 | + |
| 65 | +# build |
| 66 | +vendor: |
| 67 | + extends: .vendor |
| 68 | + |
| 69 | +assets: |
| 70 | + extends: .assets |
| 71 | + |
| 72 | +# QA |
| 73 | +eslint: |
| 74 | + extends: .eslint |
| 75 | + |
| 76 | +php-cs-fixer: |
| 77 | + extends: .cs-fixer |
| 78 | + |
| 79 | +phpmd: |
| 80 | + extends: .phpmd |
| 81 | + |
| 82 | +security-check: |
| 83 | + extends: .security-check |
| 84 | + |
| 85 | +phpmnd: |
| 86 | + extends: .phpmnd |
| 87 | + |
| 88 | +phpcpd: |
| 89 | + extends: .phpcpd |
| 90 | + |
| 91 | +phan: |
| 92 | + extends: .phan |
| 93 | + |
| 94 | +dusk: |
| 95 | + extends: .dusk |
| 96 | + |
| 97 | +phpunit: |
| 98 | + extends: .phpunit</pre> |
| 99 | + </div> |
| 100 | + </div> |
| 101 | + </section> |
| 102 | + |
| 103 | + <footer class="text-muted"> |
| 104 | + <div class="container"> |
| 105 | + <p>CI Kool.dev is manteined by <a href="https://kool.dev">Kool.dev</a> team and supported by <a href="https://fireworkweb.com">Firework Web</a> and all the community.</p> |
| 106 | + </div> |
| 107 | + </footer> |
| 108 | +</body> |
| 109 | +</html> |
0 commit comments