.gitlab-ci.yml 1.23 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
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:
33 34 35 36
    - npm run glabCLI

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 glabCLI
42
  - mkdir .public
Mark Stenglein's avatar
Mark Stenglein committed
43
  - cp -r mochawesome-reports/* .public
44 45 46 47 48 49 50
  - mv .public public
  - mv public/mochawesome.html public/index.html
  artifacts:
    paths:
    - public
  only:
  - develop