1 # General info: https://docs.gitlab.com/ee/ci/yaml/
6 - echo -e "section_start:`date +%s`:install_packages[collapsed=true]\r\e[0K\e[1;96mInstalling packages\e[0m"
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"
11 - mv doc/doc.build.user.linux.templ doc/doc.build.user
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";
34 - echo -e "section_start:`date +%s`:install_packages[collapsed=true]\r\e[0K\e[1;96mInstalling packages\e[0m"
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"
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";
56 - Languages/Tortoise.pot
62 - echo -e "section_start:`date +%s`:install_packages[collapsed=true]\r\e[0K\e[1;96mInstalling packages\e[0m"
64 - apt-get install -qq -y git
65 - echo -e "section_end:`date +%s`:install_packages\r\e[0K"
67 - .gitlab-ci/check-commits.sh
68 only: [merge_requests]