Update changelog
[TortoiseGit.git] / .gitlab-ci.yml
blob6c41dd9d1d76ec50244b8474cdab4bcdc8ebf468
1 # General info: https://docs.gitlab.com/ee/ci/yaml/
3 doc:
4   image: ubuntu:focal
5   before_script:
6     - echo -e "section_start:`date +%s`:install_packages[collapsed=true]\r\e[0K\e[1;96mInstalling packages\e[0m"
7     - apt-get update -qq
8     - apt-get install -qq --no-install-recommends -y xsltproc docbook-xsl nant aspell aspell-en
9     - echo -e "section_end:`date +%s`:install_packages\r\e[0K"
10   script:
11     - mv doc/doc.build.user.linux.templ doc/doc.build.user
12     - cd doc
13     - nant -D:spellcheck=true
14     - if [[ $(ls -1 Aspell/*.log 2>/dev/null | wc -l) -ge 1 ]]; then
15         echo -e "\e[1;31m!!! Found typos !!!\e[0m";
16         cat Aspell/*.log;
17         exit 1;
18       fi
19   except:
20     refs:
21       - tags
22   only:
23     changes:
24       - .gitlab-ci.yml
25       - doc/images/en/**/*
26       - doc/source/**/*
27       - doc/xsl/**/*
28       - doc/doc.build*
29       - doc/Aspell/*
31 spellcheck-pot:
32   image: debian:buster
33   before_script:
34     - echo -e "section_start:`date +%s`:install_packages[collapsed=true]\r\e[0K\e[1;96mInstalling packages\e[0m"
35     - apt-get update -qq
36     - apt-get install -qq --no-install-recommends -y aspell aspell-en gettext gettext-lint
37     - echo -e "section_end:`date +%s`:install_packages\r\e[0K"
38   script:
39     - perl -pi -e 's|\\r||g' Languages/Tortoise.pot
40     - msginit --no-translator -l en_US -i Languages/Tortoise.pot -o Languages/Tortoise_en.po
41     - perl -pi -e 's|&([^ ])|\1|g' Languages/Tortoise_en.po
42     - cp doc/Aspell/TortoiseGit.tmpl.pws doc/Aspell/Temp.pws
43     - perl -pi -e 's/\$LANG\$/en/g' doc/Aspell/Temp.pws
44     - POFileSpell --command='aspell --encoding=UTF-8 --add-extra-dicts="./doc/Aspell/en.pws" --add-extra-dicts=./doc/Aspell/Temp.pws --add-extra-dicts=./doc/Aspell/TortoisePot.pws --lang=en list' Languages/Tortoise_en.po > spellcheck.log
45     - if [[ $(cat spellcheck.log 2>/dev/null | wc -l) -gt 1 ]]; then
46         echo -e "\e[1;31m!!! Found typos !!!\e[0m";
47         cat spellcheck.log;
48         exit 1;
49       fi
50   except:
51     refs:
52       - tags
53   only:
54     changes:
55       - .gitlab-ci.yml
56       - Languages/Tortoise.pot
57       - doc/Aspell/*.pws
59 commit-messages:
60   image: debian:buster
61   before_script:
62     - echo -e "section_start:`date +%s`:install_packages[collapsed=true]\r\e[0K\e[1;96mInstalling packages\e[0m"
63     - apt-get update -qq
64     - apt-get install -qq -y git
65     - echo -e "section_end:`date +%s`:install_packages\r\e[0K"
66   script:
67     - .gitlab-ci/check-commits.sh
68   only: [merge_requests]