forked from brianpkelley/md-color-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (40 loc) · 865 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
image: node:latest
cache:
paths:
- node_modules
build-project:
image: node:8
coverage: /Lines\s*:\s*(\d+\.\d+)%/
script:
# TODO: maso, 2018: install opera, firefox
- apt-get update
- apt-get -yq install chromium
- apt-get -yq install git
- npm install -g bower grunt-cli
- npm install
- bower install --allow-root
- grunt test
- find . -name lcov.info | xargs -d '\n' cat | node_modules/.bin/codacy-coverage -t $CODACY_PROJECT_TOKEN
- grunt release
artifacts:
paths:
- coverage/
- doc/
- dist/
expire_in: 1 days
pages:
stage: deploy
dependencies:
- build-project
script:
- ls -l
- mkdir .public
- mv coverage/ .public/coverage/
- mv doc/ .public/doc/
- mv .public public
artifacts:
paths:
- public
expire_in: 90 days
only:
- master