mirror of
https://github.com/Findus23/devicedetector.net.git
synced 2024-09-19 15:43:46 +02:00
38 lines
607 B
YAML
38 lines
607 B
YAML
php:
|
|
tags:
|
|
- docker
|
|
image: chialab/php:7.4
|
|
|
|
# Select what we should cache between builds
|
|
cache:
|
|
paths:
|
|
- vendor/
|
|
services:
|
|
- redis:latest
|
|
|
|
before_script:
|
|
- composer install
|
|
- php -S localhost:9000 -t public >/dev/null 2>/dev/null &
|
|
|
|
script:
|
|
- php update.php
|
|
- php test.php
|
|
|
|
frontend:
|
|
tags:
|
|
- shell
|
|
cache:
|
|
paths:
|
|
- client/node_modules/
|
|
|
|
before_script:
|
|
- cd client
|
|
- yarn install --pure-lockfile --ignore-engines
|
|
|
|
script:
|
|
- yarn run build
|
|
artifacts:
|
|
name: "website"
|
|
paths:
|
|
- client/dist/
|
|
expire_in: 1 week
|