Travis - problematic Python and Node
Author: Krzysztof Miemiec
Tue Mar 27 2018
3
Travis1
.nvrmc1
Node.js1
Python1
aws.cli1
nvmWe’re speaking about project with NodeJS that also requires aws-cli (for refreshing CloudFront).
Builds were failing randomly because only the newest Python was available for Ubuntu Trusty,
2.7.6, which had some SSL-related stuff missing. Adding:
python:
- 3.6to .travis.yml, or any other version, resulted in… nothing.
Solution
It was sufficient to set language: python in .travis.yml in our front-end app.
Then Travis correctly downloaded new Python.
Old Node version
If we have e.g. language: php project, Node will be available in antediluvian 0.10 version,
perhaps. You should add:
before_install:
- nvm install 7to be happy about Node 7. Another option is adding .nvmrc file, in which you enter the
version string.