Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Trouble fixing Travis CI build #136

Open
douglasrizzo opened this issue Nov 7, 2019 · 2 comments
Open

Trouble fixing Travis CI build #136

douglasrizzo opened this issue Nov 7, 2019 · 2 comments

Comments

@douglasrizzo
Copy link

I was trying to fix the CI build. I noticed that an error occurs in the .travis.yml file in the following lines:

- (mkdir rts/build_MC && cd rts/build_MC && cmake .. -DGAME_DIR=../game_MC && make)
- (mkdir rts/build_CF && cd rts/build_CF && cmake .. -DGAME_DIR=../game_CF && make)
- (mkdir rts/build_TD && cd rts/build_TD && cmake .. -DGAME_DIR=../game_TD && make)

The first line had a problem related to using the wrong Python executable, so I fixed it by pointing it towards what looks like the right executable inside the Travis container using -DPYTHON_EXECUTABLE=/opt/pyenv/shims/python.

The following two lines, however, are attempting to compile the contents of the build_CF and build_TD directories, which appear to have incomplete files. Can anyone tell me what these directories contain?

@douglasrizzo
Copy link
Author

douglasrizzo commented Nov 7, 2019

Okay, CF is Capture the Flag and TD is Tower Defense, but they don't seem to compile, as there are references to object types missing inside some files...

@douglasrizzo
Copy link
Author

douglasrizzo commented Nov 7, 2019

The last commit that had a successful build was b02f407.

Commit 8d2f769 (Oct 2018) made changes to the elf base libraries and to the MC project. The changes to the base libraries broke compilation of TD and CF, whose latest commit date back to Apr 2018.

I see a few possible solutions to the problem.

  • If Tower Defense and Capture the Flag are abandoned, remove their compilation from .travis.ymlso that the build is successful again;
  • Delete the projects themselves;
  • Copy the elf base libraries from b02f407 and have TD and CF use them in order to be compiled successfully again. Maybe there's a more clever solution to avoid redundancy...

Any suggestions or insights?

@douglasrizzo douglasrizzo changed the title Trouble fixing Travis Ci build Trouble fixing Travis CI build Nov 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant