.gitlab-ci.yml 1.31 KB
Newer Older
Mark Stenglein's avatar
Mark Stenglein committed
1
# lib-ical
Mark Stenglein's avatar
Mark Stenglein committed
2
# Copyright (C) 2017 Mark Stenglein
Mark Stenglein's avatar
Mark Stenglein committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

Mark Stenglein's avatar
fix ci    
Mark Stenglein committed
17
image: node:latest
18
19
20
21
22
23
24

cache:
  paths:
    - node_modules/

types:
  - test
Mark Stenglein's avatar
Mark Stenglein committed
25
  - deploy
26
27
28
29
30
31
32

test_lib-ical:
  type: test
  before_script:
    - npm install
    - npm install -g typescript ts-node gulp-cli
  script:
Mark Stenglein's avatar
Mark Stenglein committed
33
    - npm run cover
34
35
36

pages:
  stage: deploy
Mark Stenglein's avatar
Mark Stenglein committed
37
38
39
  before_script:
    - npm install
    - npm install -g typescript ts-node gulp-cli
40
  script:
Mark Stenglein's avatar
Mark Stenglein committed
41
  - npm run cover
42
43
44
45
  - mkdir -p .public/unit
  - mkdir -p .public/coverage
  - cp -r mochawesome-reports/* .public/unit/
  - cp -r coverage/* .public/coverage/
46
47
48
49
50
51
52
  - mv .public public
  - mv public/mochawesome.html public/index.html
  artifacts:
    paths:
    - public
  only:
  - develop