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

Comments

Projects
None yet
8 participants
@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

This comment has been minimized.

Show comment
Hide comment
@steveklabnik

steveklabnik May 10, 2012

Contributor

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.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@sarahhodne

sarahhodne May 13, 2012

Contributor

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.

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@brauliobo

brauliobo Aug 9, 2013

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

brauliobo commented Aug 9, 2013

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

@brauliobo

This comment has been minimized.

Show comment
Hide comment
@brauliobo

brauliobo Aug 9, 2013

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

brauliobo commented Aug 9, 2013

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

@jleclanche

This comment has been minimized.

Show comment
Hide comment
@jleclanche

jleclanche 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.

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

This comment has been minimized.

Show comment
Hide comment
@BanzaiMan

BanzaiMan Aug 19, 2015

Member

@jleclanche You can install python3.

Member

BanzaiMan commented Aug 19, 2015

@jleclanche You can install python3.

@jleclanche

This comment has been minimized.

Show comment
Hide comment
@jleclanche

jleclanche Aug 19, 2015

Not in the container-based infrastructure.

jleclanche commented Aug 19, 2015

Not in the container-based infrastructure.

@BanzaiMan

This comment has been minimized.

Show comment
Hide comment
@BanzaiMan
Member

BanzaiMan commented Aug 19, 2015

@ashnazg

This comment has been minimized.

Show comment
Hide comment
@ashnazg

ashnazg Dec 2, 2015

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

ashnazg commented Dec 2, 2015

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

@fiatjaf

This comment has been minimized.

Show comment
Hide comment
@fiatjaf

fiatjaf 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/

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