mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +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
|
- 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"
|
||||||
|
@ -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";
|
||||||
|
@ -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",
|
||||||
|
@ -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"])
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user