.gitlab-ci.yml 466 Bytes
Newer Older
Johan Richer's avatar
fixup  
Johan Richer committed
1 2
image: node:latest

Johan Richer's avatar
fixup  
Johan Richer committed
3 4
stages:
  - prep
Johan Richer's avatar
fixup  
Johan Richer committed
5 6
  - build
  - pages
Johan Richer's avatar
fixup  
Johan Richer committed
7

Johan Richer's avatar
fixup  
Johan Richer committed
8
before_script:
Johan Richer's avatar
fixup  
Johan Richer committed
9
  - npm install gulp-cli -g  
Johan Richer's avatar
fixup  
Johan Richer committed
10

Johan Richer's avatar
fixup  
Johan Richer committed
11 12 13 14 15 16 17 18 19 20 21
prep:
  stage: prep
  script:
  - npm install gulp --save-dev
  artifacts:
   paths:
   - node_modules 
  cache:
   paths:
   - node_modules

Johan Richer's avatar
fixup  
Johan Richer committed
22 23
build:
  stage: build
Johan Richer's avatar
fixup  
Johan Richer committed
24
  script:
Johan Richer's avatar
fixup  
Johan Richer committed
25 26
  - npm test
  - gulp
Johan Richer's avatar
fixup  
Johan Richer committed
27 28 29
  artifacts:
    paths:
    - public
Johan Richer's avatar
fixup  
Johan Richer committed
30

Johan Richer's avatar
fixup  
Johan Richer committed
31 32 33
pages:
  stage: pages
  script:
Johan Richer's avatar
fixup  
Johan Richer committed
34 35 36
  - mkdir .public
  - cp -r * .public
  - mv .public public
Johan Richer's avatar
fixup  
Johan Richer committed
37 38 39
  artifacts:
    paths:
    - public