Use sudo: true with one element of the build matrix in travis.ci?

I use and love the continuous integration of Travis CI for an open source project on GitHub. I like fast container builds, so I install sudo: falseglobally on my script.

However, in one specific assembly of my build matrix, I want to deploy my docker container, so I think I need it sudo: truehere. Does this mean that I need to use sudo: truefor all my collections or is there some way around this? I would like to install sudo: truefor only one assembly. Alternatively, is it possible to have multiple scripts .travis.ymlin the same GitHub repository?

+4
source share
1 answer

As shown in the numpy.travis.yml script , you can specify sudo: truefor each element.

  include:
    - python: 2.7
      sudo: true
      dist: trusty
      env: ...
    - python: 2.7
      env: ...
+2
source

Source: https://habr.com/ru/post/1623370/


All Articles