Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests with multiple languages simultaneously #538

Closed
Sannis opened this issue May 10, 2012 · 10 comments
Closed

Tests with multiple languages simultaneously #538

Sannis opened this issue May 10, 2012 · 10 comments

Comments

@Sannis
Copy link

@Sannis Sannis commented May 10, 2012

A far away example: use Travis to test something like MySQL: both server and connectors code. Such project may contain code in different languages in one repository. Is this use-case planned for Travis?

@steveklabnik
Copy link
Contributor

@steveklabnik steveklabnik commented May 10, 2012

The language choice really just determines what's pre-installed. You can override script to call whatever you want, so it should be fine, really.

@sarahhodne
Copy link
Contributor

@sarahhodne sarahhodne commented May 13, 2012

Like @steveklabnik, this can be done by installing packages. Add this to your
.travis.yml:

before_install:
- sudo apt-get update
- sudo apt-get install the packages that you need
script: "./whatever/you/run/tests/with"

I haven't tested this, but I think it should work. Read the Build
Configuration documentation page
for more info on how
to set this up.

@sarahhodne sarahhodne closed this May 13, 2012
@brauliobo
Copy link

@brauliobo brauliobo commented Aug 9, 2013

This is kind of mandatory... I need to test a ruby plugin with a java server (solr)

@brauliobo
Copy link

@brauliobo brauliobo commented Aug 9, 2013

Ok, worked with before_install. Thanks.
This multiple language issue should be documented...

@jleclanche
Copy link

@jleclanche jleclanche commented Aug 19, 2015

This is a tad annoying when working on a non-python project which has python 3 scripts, since the default python in travis is 2.7.

@BanzaiMan
Copy link
Contributor

@BanzaiMan BanzaiMan commented Aug 19, 2015

@jleclanche You can install python3.

@jleclanche
Copy link

@jleclanche jleclanche commented Aug 19, 2015

Not in the container-based infrastructure.

@BanzaiMan
Copy link
Contributor

@BanzaiMan BanzaiMan commented Aug 19, 2015

@ashnazg
Copy link

@ashnazg ashnazg commented Dec 2, 2015

I was able to get python3 available in container via the addons option.

@fiatjaf
Copy link

@fiatjaf fiatjaf commented Dec 10, 2015

Without using sudo, I've managed to update and run node along with Go: http://entulho.fiatjaf.alhur.es/guias/how-to-use-node-along-with-other-language-on-travis-ci/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants