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

View File

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

View File

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

View File

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