mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Improve startup of devcontainer (#26572)
This commit is contained in:
parent
02466ed8ab
commit
702a524b55
@ -3,7 +3,7 @@
|
|||||||
"name": "Home Assistant Dev",
|
"name": "Home Assistant Dev",
|
||||||
"context": "..",
|
"context": "..",
|
||||||
"dockerFile": "../Dockerfile.dev",
|
"dockerFile": "../Dockerfile.dev",
|
||||||
"postCreateCommand": "pip3 install -e .",
|
"postCreateCommand": "mkdir -p config && pip3 install -e .",
|
||||||
"appPort": 8123,
|
"appPort": 8123,
|
||||||
"runArgs": ["-e", "GIT_EDITOR=\"code --wait\""],
|
"runArgs": ["-e", "GIT_EDITOR=\"code --wait\""],
|
||||||
"extensions": [
|
"extensions": [
|
||||||
|
15
.vscode/tasks.json
vendored
15
.vscode/tasks.json
vendored
@ -19,6 +19,7 @@
|
|||||||
"label": "Pytest",
|
"label": "Pytest",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "pytest --timeout=10 tests",
|
"command": "pytest --timeout=10 tests",
|
||||||
|
"dependsOn": ["Install all Test Requirements"],
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "test",
|
"kind": "test",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
@ -85,6 +86,20 @@
|
|||||||
"panel": "new"
|
"panel": "new"
|
||||||
},
|
},
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Install all Test Requirements",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "pip3 install -r requirements_test_all.txt -c homeassistant/package_constraints.txt",
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
"panel": "new"
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,9 @@ RUN git clone --depth 1 https://github.com/home-assistant/hass-release \
|
|||||||
WORKDIR /workspaces
|
WORKDIR /workspaces
|
||||||
|
|
||||||
# Install Python dependencies from requirements
|
# Install Python dependencies from requirements
|
||||||
COPY requirements_test_all.txt homeassistant/package_constraints.txt ./
|
COPY requirements_test.txt homeassistant/package_constraints.txt ./
|
||||||
RUN pip3 install -r requirements_test_all.txt -c package_constraints.txt \
|
RUN pip3 install -r requirements_test.txt -c package_constraints.txt \
|
||||||
&& rm -f requirements_test_all.txt package_constraints.txt
|
&& rm -f requirements_test.txt package_constraints.txt
|
||||||
|
|
||||||
# Set the default shell to bash instead of sh
|
# Set the default shell to bash instead of sh
|
||||||
ENV SHELL /bin/bash
|
ENV SHELL /bin/bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user