SOS: Testing multiple subdirectories with Travis

mmphego profile image Mpho Mphego ・1 min read

This goes to all TravisCI ninjas

I have a repo with all my Dockerfiles and I would like Travis to run tests on them individually, but they are all in various directories. Below is how my directories are structured.

GitHub repo
    |-> fast.ai
        |- .travis.yml
        |- Dockerfile
    |-> Jekyll
        |- .travis.yml
        |- Dockerfile
    |-> LaTex
        |- .travis.yml
        |- Dockerfile

    |-> .travis.yml

I was able to run a Travis build, but then this just pretty much aggregates all the results into one Travis svg.

language: c
sudo: required

    - docker
  email: false

  - make -C fast.ai build && make -C fast.ai run
  - make -C Jekyll build && make -C Jekyll run

  - cd fast.ai && git clone --depth 1 https://github.com/fastai/fastai.git && cd -
  - cd Jekyll && git clone --depth 1 https://github.com/mmphego/mmphego.github.io && cd -

- docker ps -a

Q: Is it possible to run Travis to multiple directories and have multiple results?

Posted on by:

mmphego profile

Mpho Mphego


Software Engineer in Cape Town, South Africa


markdown guide