Skip to content

Commit dbf0c5c

Browse files
authored
Update config.yml
1 parent 198ae0e commit dbf0c5c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.circleci/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
command: |
2121
sudo sed -i 's|http://archive.ubuntu.com|http://us-east-1.ec2.archive.ubuntu.com|g' /etc/apt/sources.list
2222
sudo sed -i 's|http://security.ubuntu.com|http://us-east-1.ec2.archive.ubuntu.com|g' /etc/apt/sources.list
23+
# Make APT more robust to network connectivity issues.
24+
- run:
25+
name: Configure APT behavior
26+
command: |
27+
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
28+
echo 'Acquire::http::Timeout "30";' | sudo tee /etc/apt/apt.conf.d/99timeout
29+
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/99retries
30+
echo 'Acquire::http::Pipeline-Depth "0";' | sudo tee /etc/apt/apt.conf.d/99pipeline
2331
- matlab/install:
2432
products: Optimization_Toolbox Curve_Fitting_Toolbox
2533
- matlab/run-tests:

0 commit comments

Comments
 (0)