mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 06:16:33 +00:00
Rename env var TRAVIS to IS_TEST (#5789)
This commit is contained in:
parent
321c0cfc84
commit
5fed28808e
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -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"
|
||||
|
@ -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";
|
||||
|
@ -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",
|
||||
|
@ -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"])
|
||||
)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user