Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 281 forks source link

Hook up Travis CI. #95

Closed AnthonyBrunasso closed 6 years ago

AnthonyBrunasso commented 7 years ago

Soon.

kuzi117 commented 7 years ago

Is this dependent on #15?

AnthonyBrunasso commented 7 years ago

There's some challenges running the tests because the sc2 binary has to be run. I haven't used Travis much before so I'll need to research if that's even something possible.

A good first step is just making sure everything builds on our desired platforms for each commit.

And thank you for reminding me about that task. I need to get that done.

Michael-F-Bryan commented 7 years ago

It may be a good idea to add an after_success hook which builds the documentation and pushes it to GitHub Pages so users can browse it online instead of building locally. I do something similar for most of my projects.

AnthonyBrunasso commented 7 years ago

@Michael-F-Bryan I like this idea. I'll have to check on the status of our travis work on Monday.

alkurbatov commented 7 years ago

I created initial version of Travis config which works for Linux builds, see #187. Probably OS X support will be introduced later.

From my point of view the real problem of Travis is outdated build environment (here we choose between Ubuntu Trusty (14.04) and some even older version (12.04 ?)). That cause a lot of problems for modern C++ (that could be clearly seen in the pull-request). So I am not sure that tests and SC2 can be used inside a Travis Virtual Machine without additional magic.

alkurbatov commented 7 years ago

I implemented os x support too. Feel free to reuse the code: https://github.com/alkurbatov/suvorov-bot/blob/master/.travis.yml

herodrigues commented 6 years ago

@AnthonyBrunasso Travis build now exists.

https://travis-ci.org/Blizzard/s2client-api