forked from magesuite/theme-creativeshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
45 lines (40 loc) · 910 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
stages:
- build
- lint
default:
image: node:lts-alpine
build:
stage: build
before_script:
- apk add --no-cache build-base jpeg-dev zlib-dev automake autoconf libtool nasm libpng
- npm i --force -g yarn
- yarn install --frozen-lockfile
script:
- yarn build
after_script:
- yarn gulp clean
artifacts:
expire_in: 10 min
paths:
- node_modules/
prettier:
stage: lint
before_script:
- npm i --force -g yarn
- yarn install --frozen-lockfile
script:
- yarn prettier --check "src/**/*.{ts,js}"
stylelint:
stage: lint
before_script:
- npm i --force -g yarn
- yarn install --frozen-lockfile
script:
- yarn stylelint "src/**/*.{css,scss}"
tslint:
stage: lint
before_script:
- npm i --force -g yarn
- yarn install --frozen-lockfile
script:
- yarn tslint -c tslint.js "src/**/*.{ts,js}" -e "src/**/vendor?(s)/**/*"