之前,脚本curl下载无法在Travis CI上写入字体文件

之前,脚本curl下载无法在Travis CI上写入字体文件,curl,testing,fonts,download,travis-ci,Curl,Testing,Fonts,Download,Travis Ci,我在下载字体测试我的应用程序时遇到了一个障碍。但是,由于某些不明原因,将文件写入磁盘失败 $ bash ./test/fetch-fonts.bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 176 100 17

我在下载字体测试我的应用程序时遇到了一个障碍。但是,由于某些不明原因,将文件写入磁盘失败

$ bash ./test/fetch-fonts.bash
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                               Dload  Upload   Total   Spent    Left  Speed

100   176  100   176    0     0    526      0 --:--:-- --:--:-- --:--:--   533
Warning: Failed to create the file 
Warning: ./resources/fonts/DroidSansFallbackFull.ttf: No such file or 
Warning: directory
0 3938k    0  1925    0     0   4737      0  0:14:11 --:--:--  0:14:11  4737
curl: (23) Failed writing body (0 != 1925)
The command "bash ./test/fetch-fonts.bash" failed and exited with 23 during .
更新 我尝试使用较小的字体(104Kb而不是3.8Mb),得到了相同的效果

问题: 我该如何解决这个问题?

如上所述

我认为您需要创建目录。/resources/font,以便
curl
可以对其进行写入