.gitlab-ci.yml 683 Bytes
Newer Older
Thomas Fragner's avatar
Thomas Fragner committed
1
2
3
4
5
6
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/hugo
image: meroff/hugo-with-pandoc

pages:
  script:
Thomas Fragner's avatar
Thomas Fragner committed
7
  - git checkout .
Thomas Fragner's avatar
Thomas Fragner committed
8
  - git submodule foreach git checkout .
Thomas Fragner's avatar
Thomas Fragner committed
9
  - git submodule update --init --remote --recursive
Thomas Fragner's avatar
Thomas Fragner committed
10
11
12
  - cd themes/academic
  - git checkout v2.4.0
  - cd ../../
Thomas Fragner's avatar
Thomas Fragner committed
13
  - python3.6 -m venv venv
Thomas Fragner's avatar
Thomas Fragner committed
14
15
  - source venv/bin/activate
  - pip install -r .pandoc/requirements.txt
Thomas Fragner's avatar
Thomas Fragner committed
16
  - cp -purv .pandoc ~/
Thomas Fragner's avatar
Thomas Fragner committed
17
  - ./bin/compile-pdf.sh .
Thomas Fragner's avatar
Thomas Fragner committed
18
  - ls -lrta /content/doc/cl-vl
Thomas Fragner's avatar
Thomas Fragner committed
19
  #- ./bin/compile-html.sh --hugo
20
  - hugo
Thomas Fragner's avatar
Thomas Fragner committed
21
22
23
24
25
26
27
28
29
30
31
  artifacts:
    paths:
    - public
  only:
  - master
  
test:
  script:
  - hugo
  except:
  - master