Update extractor to run on every commit

This commit is contained in:
Angelos Chalaris
2019-08-30 20:05:22 +03:00
parent 37bab8ea6d
commit 95101e280a
2 changed files with 5 additions and 6 deletions

View File

@ -15,16 +15,15 @@ const SNIPPETS_ARCHIVE_PATH = `./${config.snippetArchivePath}`;
const GLOSSARY_PATH = `./${config.glossaryPath}`;
const OUTPUT_PATH = `./${config.snippetDataPath}`;
// Check if running on Travis, only build for cron jobs and custom builds
// Terminate if parent commit is a Travis build
if (
util.isTravisCI() &&
process.env['TRAVIS_EVENT_TYPE'] !== 'cron' &&
process.env['TRAVIS_EVENT_TYPE'] !== 'api'
/^Travis build: \d+/g.test(process.env['TRAVIS_COMMIT_MESSAGE'])
) {
console.log(
`${green(
'NOBUILD',
)} snippet extraction terminated, not a cron or api build!`,
'NOEXTRACT',
)} Snippet extraction terminated, parent commit is a Travis build!`,
);
process.exit(0);
}

View File

@ -32,8 +32,8 @@ header.menu {
.content {
transition: 0.3s ease all;
grid-area: content;
overflow-x: hidden;
overflow: auto;
overflow-x: hidden;
background: var(--back-color);
&::-webkit-scrollbar-track {
background-color: var(--scrollbar-back-color);