Travis CI + Sourcemod
I just started to switch from bitbucket to github and recognized that many developers use travis for testing their plugins against sourcemod compiler. Because I never worked with travis and couldn't find a tutorial for using it with sourcemod easily, i read their docs, created a configuration that fits to all of my plugins and posted it here.
Code:
language: cYou have to upload the custom includes, that your plugin needs, to your repo. Then you have to set the env vars. The global one are holding the paths to your custom includes and sp files. Those are relative to your repo root. Also you can set the versions of sourcemod to test against. If you define multiple versions, multiple tests will be triggered. For auto deployment you also need to set repo vars FTPUSER and FTPPASS. Auto Deployment This file contains a auto deployment after successfull build. This can be used for providing up to date downloads or pushing the plugin to test server for future tests. Anyway it has to get modified in most cases. Therefor you can edit HOME var and/or the last line (ftp://$HOME/$SOURCEMOD/) which holds the destination. If you don't need it simply remove the after_sucess part. Example Maybe somone can make use of it. |
Re: Travis CI + Sourcemod
I suggest that you revise your script to remove the need for sudo and instead use the new container-based infrastructure (see https://github.com/50DKP/FF2-Officia...le/.travis.yml as an example).
Also, won't the password appear on Travis when that line gets called? |
Re: Travis CI + Sourcemod
Oh yes. I gonna have a lookt at it. No the password won't be shown unless you activate that in the repo settings. Have a look at the example.
|
Re: Travis CI + Sourcemod
Quote:
|
| All times are GMT -4. The time now is 18:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.