Rename env var TRAVIS to IS_TEST (#5789)

This commit is contained in:
Paulus Schoutsen
2020-05-07 12:39:18 +02:00
committed by GitHub
parent 321c0cfc84
commit 5fed28808e
4 changed files with 6 additions and 6 deletions
+2 -2
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"
+2 -2
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";
+1 -1
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",
+1 -1
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"])
) )
); );