Rename env var TRAVIS to IS_TEST (#5789)

This commit is contained in:
Paulus Schoutsen 2020-05-07 03:39:18 -07:00 committed by GitHub
parent 321c0cfc84
commit 5fed28808e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@ jobs:
- name: Build Application - name: Build Application
run: ./node_modules/.bin/gulp build-app run: ./node_modules/.bin/gulp build-app
env: env:
TRAVIS: "true" IS_TEST: "true"
supervisor: supervisor:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [lint, test] needs: [lint, test]
@ -122,4 +122,4 @@ jobs:
- name: Build Application - name: Build Application
run: ./node_modules/.bin/gulp build-hassio run: ./node_modules/.bin/gulp build-hassio
env: env:
TRAVIS: "true" IS_TEST: "true"

View File

@ -5,8 +5,8 @@ module.exports = {
isStatsBuild() { isStatsBuild() {
return process.env.STATS === "1"; return process.env.STATS === "1";
}, },
isTravis() { isTest() {
return process.env.TRAVIS === "true"; return process.env.IS_TEST === "true";
}, },
isNetlify() { isNetlify() {
return process.env.NETLIFY === "true"; return process.env.NETLIFY === "true";

View File

@ -42,7 +42,7 @@ gulp.task(
"copy-static", "copy-static",
"webpack-prod-app", "webpack-prod-app",
...// Don't compress running tests ...// Don't compress running tests
(envVars.isTravis() ? [] : ["compress-app"]), (envVars.isTest() ? [] : ["compress-app"]),
gulp.parallel( gulp.parallel(
"gen-pages-prod", "gen-pages-prod",
"gen-index-app-prod", "gen-index-app-prod",

View File

@ -29,6 +29,6 @@ gulp.task(
"gen-icons-json", "gen-icons-json",
"webpack-prod-hassio", "webpack-prod-hassio",
...// Don't compress running tests ...// Don't compress running tests
(envVars.isTravis() ? [] : ["compress-hassio"]) (envVars.isTest() ? [] : ["compress-hassio"])
) )
); );