wordpress-theme-boilerplate
Version:
A WordPress theme boilerplate
50 lines (43 loc) • 855 B
YAML
# Project's GitLab CI configuration
# Use the global node.js docker image
image: node
# Global Vars
variables:
PKG_NAME: "theme"
# Global Caching rules, enabled per-ref caching
cache:
key: "$CI_BUILD_REF_NAME"
paths:
- node_modules/
- assets/vendor/
# First install bower and gulp-cli globally and then
# install/require all dependencies
before_script:
- npm install -g bower gulp-cli
- npm install
- bower install --allow-root
stages:
- lint
- build
lint:all:
stage: lint
script: gulp lint
allow_failure: true
build:all:
stage: build
only:
- master
script:
- gulp build
artifacts:
name: "${PKG_NAME}_${CI_BUILD_REF}"
paths:
- assets/dist/
- assets/vendor/
- includes/
- languages/
- ./*.php
- style.css
- screenshot.*
- humans.txt
- LICENSE