Skip to content

Instantly share code, notes, and snippets.

@bibendi
Created July 25, 2014 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bibendi/9f51c6bbe9ce19f975fa to your computer and use it in GitHub Desktop.
Save bibendi/9f51c6bbe9ce19f975fa to your computer and use it in GitHub Desktop.
Shippable
language: ruby
rvm:
- '1.9.3'
env:
- DEPLOY=shippable PROJECT=ci VERBOSE=1 JOBS=8 RUBY_GC_MALLOC_LIMIT=990000000
services:
- memcached
- redis
addons:
postgresql: '9.3'
bundler_args: -j 3 --without development debug production profile console
before_install:
- cp packages/ci/shippable/ci-id_rsa ~/.ssh/id_rsa
- sudo apt-get install -y -q libxslt-dev libxml2-dev
- sudo apt-get install -y -q libcurl3-dev
- sudo apt-get install -y -q libmagickwand-dev imagemagick
- sudo apt-get install -y -q catdoc
- sudo apt-get install -y -q enca
- sudo apt-get install -y -q libmysqlclient-dev
- sudo apt-get install -y -q libpq-dev
- sudo apt-get install -y -q postgresql-plperl-9.3 postgresql-9.3-pgq3
# sphinx
- curl -o /tmp/sphinx.deb http://sphinxsearch.com/files/sphinxsearch_2.1.9-release-0ubuntu11~precise_amd64.deb
- sudo apt-get -y -q install libodbc1 unixodbc
- sudo dpkg -i /tmp/sphinx.deb
- rm /tmp/sphinx.deb
# ekb time
- sudo mv /etc/localtime /etc/localtime-old
- sudo ln -sf /usr/share/zoneinfo/Asia/Yekaterinburg /etc/localtime
before_script:
- psql -c "create database ci WITH OWNER = postgres TABLESPACE = pg_default CONNECTION LIMIT = -1 TEMPLATE template0 ENCODING 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';" -U postgres
- cat packages/ci/shippable/pulscen.sql | psql -U postgres ci
- cat packages/ci/shippable/pulscen_migrations.sql | psql -U postgres ci
- psql -c "create database ci_stat WITH OWNER = postgres TABLESPACE = pg_default CONNECTION LIMIT = -1 TEMPLATE template0 ENCODING 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';" -U postgres
- cat packages/ci/shippable/pulscen_stat.sql | psql -U postgres ci_stat
- cat packages/ci/shippable/pulscen_stat_partitions.sql | psql -U postgres ci_stat
- script/config_env
- mkdir -p db/sphinx/test/binlog
script:
- bundle exec rake --trace build
notifications:
email: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment