project-bluebird / simurgh

An open source platform that supports developing and evaluating algorithms (AI agents) for air traffic control
https://alan-turing-institute.github.io/simurgh
11 stars 4 forks source link

Incorporate CI testing #2

Closed tallamjr closed 5 years ago

tallamjr commented 5 years ago

Although there are test suits within the individual submodules, it might be desirable to have CI tests that investigate if a build on the complete package is working

tallamjr commented 5 years ago

Although a workaround was attempted using:

...
...
before_install:
  - "sed -i \"s|https://github.com/alan-turing-institute/nats-birdhouse.git|https://tallamjr:$CI_ACCESS_TOKEN@github.com/alan-turing-institute/nats-birdhouse.git|\" .gitmodules"
  - "git submodule update --init --recursive"
  - "echo -e 'machine github.com\n  login $CI_ACCESS_TOKEN' > ~/.netrc"
...
...

There may be subtleties with working with private submodules within the alan-turning-institute organisation. This seems to cause the error below:

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:alan-turing-institute/nats-birdhouse.git' into submodule path '/home/travis/build/alan-turing-institute/simurgh/birdhouse' failed
Failed to clone 'birdhouse' a second time, aborting
The command "git submodule update --init --recursive" failed and exited with 1 during .

One option could be to make nats-birdhouse public.

To be investigated ...