Skip to content

Commit 8cd2066

Browse files
committed
Use SourceForge CDN for CI
1 parent c19c631 commit 8cd2066

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

platform.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,24 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from os import getenv
16+
1517
from platformio.managers.platform import PlatformBase
1618

1719

1820
class Espressif8266Platform(PlatformBase):
1921

22+
@property
23+
def package_repositories(self):
24+
repositories = super(
25+
Espressif8266Platform, self).package_repositories or []
26+
if getenv("CI", "false").lower() == "true":
27+
repositories = [
28+
"https://sourceforge.net/projects/platformio-storage/"
29+
"files/packages/manifest.json"
30+
] + repositories
31+
return repositories
32+
2033
def configure_default_packages(self, variables, targets):
2134
if not variables.get("pioframework"):
2235
self.packages['sdk-esp8266']['optional'] = False

0 commit comments

Comments
 (0)