尝试将CI添加到python项目时出错

时间:2018-11-16 15:37:50

标签: python continuous-integration travis-ci

我正在尝试将Travis Ci测试添加到python项目中,但是每次运行它时,我都会出错:

Setting APT mirror in /etc/apt/sources.list: http://us-east- 
1.ec2.archive.ubuntu.com/ubuntu/
3.1 is not installed; attempting download
Downloading archive: https://s3.amazonaws.com/travis-python- 
archives/binaries/ubuntu/14.04/x86_64/python-3.1.tar.bz2
$ curl -sSf -o python-3.1.tar.bz2 ${archive_url}
curl: (22) The requested URL returned error: 403 Forbidden
Unable to download 3.1 archive. The archive may not exist. Please consider a 
different version.

这是travis.yml文件:

language: python
python:
 - "3.1"
install: pip install -r requirements.txt
script: 
- python tests.py

1 个答案:

答案 0 :(得分:0)

这是在告诉您Python 3.1不是Travis支持的版本,请尝试更新的版本,例如

function f1(){
  function f2(){ console.log("f2 logging"); }
  
  setTimeout(f2,3000);
}
f1();