.gitlab-ci.yml 708 Bytes
Newer Older
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
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/plain-html
pages:
  before_script:
    - apt-get update
    - apt-get install zip unzip locales -y 
    - echo "fr_FR UTF-8" > /etc/locale.gen
    - locale-gen fr_FR.UTF-8
    - export LANG=fr_FR.UTF-8
    - export LANGUAGE=fr_FR:en
    - export LC_ALL=fr_FR.UTF-8

  stage: deploy
  script:
    - |
      mkdir .public
      for tp in 'TP1' 'TP2' 'TP3' 'TP4'
      do
        mkdir .public/$tp
        cd $tp
        zip -r $tp *
        mv $tp.zip ../.public/$tp/Sujet.zip
        cd ..
      done
      mv .public public
  artifacts:
    paths:
      - public
  only:
    - master