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

Split setup scripts per database #1

Open
guillep opened this issue Nov 2, 2016 · 0 comments
Open

Split setup scripts per database #1

guillep opened this issue Nov 2, 2016 · 0 comments

Comments

@guillep
Copy link
Member

guillep commented Nov 2, 2016

Today, all jobs are paying a bit the prices of other jobs because we need to make an homogeneous infrastructure to run the tests depending on the platform. For example:

  • all osx jobs are taking ~5 minutes because they require updating brew and installing mysql. This happens because osx slaves do not come with mysql installed by default
if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update > /dev/null && brew install mysql && mysql.server start; fi
  • all linux jobs are reinstalling sqlite3 even for non-sqlite jobs
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
    sudo apt-get autoremove sqlite3;
    sudo apt-add-repository -y ppa:travis-ci/sqlite3;
    sudo apt-get -y update;
    sudo apt-cache show sqlite3;
    sudo apt-get install sqlite3=3.7.15.1-1~travis1;
    sudo sqlite3 -version;
fi;
  • all osx jobs are also making a by-hand startup of postgres
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    export PG_DATA=$(brew --prefix)/var/postgres;
    rm -rf ${PG_DATA} && initdb ${PG_DATA} -E utf8;
    pg_ctl -w start -l postgres.log --pgdata ${PG_DATA};
    createuser -s postgres;
    cat postgres.log;
fi;

We should make that specific scripts for each database are run for each database. And try to do it outside the .travis.yml file because it starts to get too complicated.

guillep pushed a commit that referenced this issue Nov 13, 2017
Fix queryEncoding Glorp compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant