Skip to content

Commit 6c977ff

Browse files
committed
ci(ci): fix CI errors
ci(travis): upgrade Node.js to the latest version for preventing errors like these — https://travis-ci.org/github/Kristinita/KristinitaPelican/jobs/728121010 build(grunt): downgrade grunt-critical, because 2.0.0 version too slow — https://ci.appveyor.com/project/Kristinita/kristinitapelican/build/job/9pr390t692pr65oa#L2999 perf(node): create “.npmrc” file; possibly, it will make Node.js and Grunt commands less slow
1 parent 4ae0081 commit 6c977ff

28 files changed

Lines changed: 139 additions & 90 deletions

.github/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ newPRWelcomeComment: >
9797
9898
9999
Please, note, that all files and commits of your pull request
100-
[**must be 100% valid**](https://kristinita.ru/About-for-developers#linting-and-validation).
100+
[**must be 100% valid**](https://kristinita.netlify.app/About-for-developers#Linting-and-validation).
101101
102102
# Comment to be posted to on pull requests merged by a first time user
103103
firstPRMergeComment: >

.npmrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
; [ACTION] Disable packages audit:
2+
; https://docs.npmjs.com/auditing-package-dependencies-for-security-vulnerabilities#installing-all-packages
3+
; [PURPOSE] Possibly, it makes the Node.js and Grunt commands less slow
4+
; [LEARN][NODEJS] “.npmrc”:
5+
; https://docs.npmjs.com/configuring-npm/npmrc
6+
; [INFO] “.npmrc” uses INI syntax:
7+
; https://docs.npmjs.com/configuring-npm/npmrc#comments
8+
; [INFO] Per-project “.npmrc”:
9+
; https://docs.npmjs.com/configuring-npm/npmrc#per-project-config-file
10+
audit=false

.travis.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,19 @@
3232
# https://docs.travis-ci.com/user/reference/overview/
3333
os: linux
3434

35+
36+
# [DEPRECATED]
3537
# [NOTE] Needs Xenial, not Trusty for Python 3.7 works:
3638
# https://travis-ci.community/t/unable-to-download-python-3-7-archive-on-travis-ci/639/2
3739
# https://github.com/travis-ci/travis-ci/issues/9815#issuecomment-425867404
3840
# Differences between Xenial and Trusty:
3941
# https://docs.travis-ci.com/user/reference/xenial/#differences-from-the-trusty-images
40-
dist: xenial
42+
43+
44+
# [INFO] Compare Travis Ubuntu environments;
45+
# “focal” is the latest for September 2020:
46+
# https://docs.travis-ci.com/user/reference/linux#overview
47+
dist: focal
4148

4249
# [INFO] Don't download all repository history, that save a time:
4350
# https://docs.travis-ci.com/user/customizing-the-build/#git-clone-depth
@@ -204,6 +211,13 @@ before_install:
204211
# [INFO] Don't install pylint from grunt-pylint
205212
# https://www.npmjs.com/package/grunt-pylint#getting-started
206213
- export GRUNT_PYLINT_SKIP_POSTINSTALL=yes
214+
# [NOTE] Disable Node.js warnings:
215+
# https://nodejs.org/api/cli.html#cli_node_no_warnings_1
216+
# It a not the best solution, a lot of warnings from old Grunt packages
217+
# prevent normal viewing of output, example:
218+
# https://ci.appveyor.com/project/Kristinita/kristinitapelican/build/job/qhr57grom9dohssp
219+
- export NODE_NO_WARNINGS=1
220+
207221
# Add LocalAppVeyor directory to the end of the PATH environment variable:
208222
# https://unix.stackexchange.com/a/26067/237999
209223
# http://www.troubleshooters.com/linux/prepostpath.htm
@@ -228,21 +242,6 @@ install:
228242
# https://travis-ci.org/Kristinita/SashaPelicanTest/jobs/347267767
229243
- bash bash/travis-install.sh
230244

231-
# [DEPRECATED] Doesn't work on Travis CI, needs “matrix.include”:
232-
# https://github.com/travis-ci/travis-ci/issues/9634
233-
# script:
234-
# - grunt $GRUNT_COMMAND
235-
# # [WARNING] Don't move these commands to “after_success” section,
236-
# # exit code = 0 in this section always:
237-
# # https://blog.travis-ci.com/after_script_behavior_changes/
238-
# # https://github.com/travis-ci/travis-ci/issues/758
239-
# # https://travis-ci.org/Kristinita/KristinitaPelican/jobs/368968780
240-
# # [WARNING] I don't use Build Stages, because each stage run in new virtual machine,
241-
# # no data persistence → it takes a lot of time, that install and compile all dependencies before stages.
242-
# # This is unnecessary in my case.
243-
# # https://docs.travis-ci.com/user/build-stages/#Data-persistence-between-stages-and-jobs
244-
# - grunt validate remote travis
245-
246245
# [INFO] Automatically deploy site to GitHub Pages:
247246
# https://docs.travis-ci.com/user/deployment
248247
# https://docs.travis-ci.com/user/deployment/pages/
@@ -254,6 +253,9 @@ install:
254253
# [WARNING] Custom commit messages doesn't support:
255254
# https://github.com/travis-ci/travis-ci/issues/9287
256255
deploy:
256+
# [INFO] Deploy strategy:
257+
# https://docs.travis-ci.com/user/deployment-v2/providers/pages/#shared-options
258+
strategy: git
257259
provider: pages
258260
# [INFO] dpl v2:
259261
# https://blog.travis-ci.com/2019-08-27-deployment-tooling-dpl-v2-preview-release
@@ -293,7 +295,7 @@ deploy:
293295
committer_from_gh: true
294296
# [INFO] For custom domains only
295297
# Automatically generate CNAME for custom domain:
296-
# fqdn: Kristinita.ru
298+
# fqdn: kristinita.netlify.app
297299
# [WARNING] Don't use single quotes in “project-name”:
298300
# https://github.com/travis-ci/travis-ci/issues/9325
299301
# [INFO] “project_name”, not “project-name” for dpl v.2

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# Contributor Covenant Code of Conduct
23

34
## Our Pledge

appveyor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ init:
4343
# [INFO] Don't install pylint from grunt-pylint
4444
# https://www.npmjs.com/package/grunt-pylint#getting-started
4545
- SETX GRUNT_PYLINT_SKIP_POSTINSTALL yes
46+
# [NOTE] Disable preventing Node.js warnings:
47+
# [LINK] “.travis.yml”
48+
- SETX NODE_NO_WARNINGS 1
49+
4650
# [NOTE] Use “CALL Refreshenv.cmd” for local installation:
4751
# https://github.com/chocolatey/choco/issues/1461#issuecomment-348136706
4852
# https://ss64.com/nt/call.html

bash/travis-install.sh

Lines changed: 51 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,84 @@
22
################
33
# GNU Parallel #
44
################
5-
# Install all Travis CI dependencies for building and validation.
6-
# [BUG] Don't use NON-ASCII symbols in this file!
5+
# [PURPOSE] Install all Travis CI dependencies for building and validation.
6+
7+
8+
# [BUG][WARNING][APPVEYOR] Don't use NON-ASCII symbols in this file!
79
# AppVeyor doesn't support them.
810
# https://ci.appveyor.com/project/Kristinita/kristinitapelican/build/job/ha70um51grbxo8e4#L2032
911
# https://github.com/appveyor/ci/issues/2226
1012
# https://github.com/appveyor/ci/issues/2129
1113
# https://github.com/appveyor/ci/issues/2107
12-
# Run commands parallel:
14+
15+
16+
# [LEARN][PARALLEL] Run commands parallel:
1317
# https://www.gnu.org/software/parallel/
14-
# [WARNING] On Windows works in Cygwin, not in default console:
18+
# [WARNING] On Windows it works in Cygwin, not in default console:
1519
# https://savannah.gnu.org/forum/forum.php?forum_id=7581
1620
# [INFO] Parallel npm and pip tasks:
1721
# https://unix.stackexchange.com/a/427419/237999
18-
# [WARNING] Default UNIX parallel commands doesn't work for Travis CI:
22+
# [NOTE] Default UNIX parallel commands doesn't work for Travis CI:
1923
# https://unix.stackexchange.com/questions/427410#comment771128_427415
24+
# [WARNING] Don't paste any comments after "parallel :::", parallel will not work!
25+
# https://travis-ci.org/Kristinita/SashaScrutinizer/builds/363772800
26+
27+
28+
# [NOTE] Node.js latest version required;
29+
# because by default it doesn't work correctly:
30+
# https://travis-ci.org/github/Kristinita/KristinitaPelican/jobs/728121010
31+
# [LEARN][NVM] Install the latest Node.js version by NVM:
32+
# https://github.com/nvm-sh/nvm#usage
33+
# https://travis-ci.org/github/Kristinita/SashaTravisDebugging/builds/728253580#L187-L188
34+
# [INFO] David Welsh reccomends NVM installation:
35+
# https://davidwalsh.name/nvm
36+
# [NOTE] Doesn't work:
37+
# "node_js: node":
38+
# https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#specifying-nodejs-versions
39+
# https://travis-ci.org/github/Kristinita/SashaTravisDebugging/builds/728248259#L182-L183
40+
# Node.js from apt addon:
41+
# https://travis-ci.org/github/Kristinita/SashaTravisDebugging/builds/728250645#L223-L224
42+
# ".nvmrc":
43+
# https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#specifying-nodejs-versions-using-nvmrc
44+
# https://travis-ci.org/github/Kristinita/SashaTravisDebugging/builds/728252349#L182-L183
45+
# "apt-get -y install node.js":
46+
# https://stackoverflow.com/a/21119945/5951529
47+
# https://travis-ci.org/github/Kristinita/SashaTravisDebugging/builds/728252818#L219-220
48+
49+
2050
# [NOTE] Grunt tasks needs grunt-cli globally:
2151
# https://stackoverflow.com/a/21133609/5951529
22-
# [WARNING] Don't paste any comments "after parallel :::", parallel will not work:
23-
# https://travis-ci.org/Kristinita/SashaScrutinizer/builds/363772800
24-
# [NOTE] "pipenv run python rename_pelican_plugins_folder.py" required, not
25-
# "python rename_pelican_plugins_folder.py":
26-
# https://travis-ci.org/Kristinita/KristinitaPelican/jobs/536312994#L483
27-
# [FIXED] I remove "python rename_pelican_plugins_folder.py" file
28-
# [WARNING] apt-get HTML Tidy version outdated, build HTML tidy on Ubuntu from sources:
52+
53+
54+
# [FIXME] Temporary downgrade pipenv, because locking bug in the newest versions:
55+
# https://github.com/pypa/pipenv/issues/3391
56+
57+
58+
# [NOTE] apt-get HTML Tidy version outdated, build HTML tidy on Ubuntu from sources:
59+
# https://askubuntu.com/a/1027128
2960
# https://github.com/htacg/tidy-html5/blob/next/README/BUILD.md
3061
# https://github.com/htacg/tidy-html5/issues/721
3162
# https://codeyarns.com/2016/06/06/how-to-build-and-install-html-tidy/
3263
# [NOTE] "sudo make install" — mandatory command:
3364
# https://travis-ci.org/Kristinita/SashaTidyDebugging/builds/369420036
3465
# [BUG] Warnings in console, when HTML Tidy build:
3566
# https://github.com/htacg/tidy-html5/issues/721
36-
# [BUG] Temporary downgrade pipenv, because locking bug in newest versions:
37-
# https://github.com/pypa/pipenv/issues/3391
67+
68+
69+
# [INFO] PhantomJS pre-installed on Travis:
70+
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-phantomjs
71+
72+
3873
# [INFO] Install .NET Core and LocalAppVeyor for Ubuntu:
3974
# https://dotnet.microsoft.com/download/linux-package-manager/ubuntu16-04/sdk-current
40-
# [NOTE] PhantomJS pre-installed on Travis:
41-
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-phantomjs
4275
# [NOTE] Matrix key "dotnet" for C#, F# or Visual Basic projects.
4376
# If no, you need install .NET Core manually:
4477
# https://docs.travis-ci.com/user/languages/csharp/
45-
# [WARNING] You need specific DotNet version and Ubuntu version;
78+
# [NOTE] You need specific DotNet and Ubuntu version;
4679
# "https://packages.microsoft.com/config/ubuntu/packages-microsoft-prod.deb" and
4780
# "sudo apt-get install dotnet-sdk" will not works
48-
# [WARNING] You need specific LocalAppVeyor version, because no stable versions at January 2019,
49-
# and user get a bug: "error NU1103: Unable to find a stable package localappveyor with version"
50-
# [FIXED] For September, 2019 specific LocalAppVeyor version not available:
51-
# https://www.nuget.org/packages/localappveyor/
5281
parallel ::: 'pip install --upgrade pip && pip install pipenv==11.10.2 && pipenv install --dev && pipenv run peru sync' \
53-
'npm install --global npm && npm install -g grunt-cli && npm install' \
82+
'nvm install node && npm install --global npm && npm install -g grunt-cli && npm install' \
5483
'git clone https://github.com/htacg/tidy-html5.git && cd tidy-html5 && cd build/cmake && cmake ../.. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIB:BOOL=OFF && make && sudo make install' \
5584
'gem install travis' \
5685
'wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && sudo dpkg -i packages-microsoft-prod.deb && sudo apt-get update && sudo apt-get install dotnet-sdk-3.1 && dotnet tool install -g localappveyor'

content/Gingerinas/Джинджерины.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Title: Джинджерины
22
Version: 1.1.0-beta
33
Author: Sasha Chernykh
44
Date: 2017-07-20 0:05:14
5-
Modified: 2019-05-23 12:15:26
5+
Modified: 2020-09-18 08:43:16
66
Lang: ru
77
Summary: Джинджерины — терминология и классификация
88
Pagetitle: Джинджерины
@@ -47,7 +47,7 @@ Schemaorgtype: ScholarlyArticle
4747

4848
1. **Викторина**.
4949

50-
Сложилось, что викторинами [часто](https://kristinita.ru/#gsc.tab=0&gsc.q=%D0%B2%D0%B8%D0%BA%D1%82%D0%BE%D1%80%D0%B8%D0%BD%D0%B0) называются тематические интеллектуальные соревнования.
50+
Сложилось, что викторинами [часто](https://kristinita.netlify.app/#gsc.tab=0&gsc.q=%D0%B2%D0%B8%D0%BA%D1%82%D0%BE%D1%80%D0%B8%D0%BD%D0%B0) называются тематические интеллектуальные соревнования.
5151

5252
1. **Знаток**.
5353

content/Gingerinas/Знания-в-джинджеринах.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Version: 0.1.0
33
Author: Sasha Chernykh
44
Lang: ru
55
Date: 2017-12-23 6:48:14
6-
Modified: 2019-06-14 21:15:13
6+
Modified: 2020-09-18 08:48:17
77
Summary: Что такое знания и эрудиция, а что — просто информация
88
Pagetitle: Знания в джинджеринах
99
Pagecolors: gingerinas
@@ -356,7 +356,7 @@ Schemaorgtype: ScholarlyArticle
356356
В данном подразделе перечисляются темы, по которым мне совсем не хочется видеть вопросы. При этом как составлен вопрос, значения не имеет.
357357

358358
1. Охота, рыбалка, жестокие «развлечения» с участием животным; мясная, молочная промышленности и прочие виды варварства XXI века, которые многие до сих пор считают нормальным;
359-
1. «Ценности» поколения [новых недовольных русских](https://kristinita.ru/Smert-svobode/%D0%9D%D0%BE%D0%B2%D1%8B%D0%B5-%D0%BD%D0%B5%D0%B4%D0%BE%D0%B2%D0%BE%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B5) — проекты с высоким уровнем агрессии, ненависти, оскорблений, унижений. Примеры: сайт Луркоморье, мультсериал South Park, шоу Versus Battle.
359+
1. «Ценности» поколения [новых недовольных русских](https://kristinita.netlify.app/Smert-svobode/%D0%9D%D0%BE%D0%B2%D1%8B%D0%B5-%D0%BD%D0%B5%D0%B4%D0%BE%D0%B2%D0%BE%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B5) — проекты с высоким уровнем агрессии, ненависти, оскорблений, унижений. Примеры: сайт Луркоморье, мультсериал South Park, шоу Versus Battle.
360360
1. [Коммерческие художественные произведения](http://diesel.elcat.kg/index.php?showtopic=138084), в основном, многие голливудские фильмы.
361361

362362
<a id="Значимость-в-художественных-произведениях"></a>

0 commit comments

Comments
 (0)