peak_flow.yml
before_install:
- sudo apt-get update && sudo apt-get install -y libmysqlclient-dev mysql-client
before_script:
- sudo apt-get update && sudo apt-get install -y mysql-client
- wait-for-it mysql:3306
- wait-for-it postgres:5432
- mysql -hmysql -uroot -ppassword -e "GRANT ALL PRIVILEGES ON *.* TO 'build'@'%'"
- cp spec/info_mysql_peak_flow.rb spec/info_mysql.rb
- cp spec/info_mysql2_peak_flow.rb spec/info_mysql2.rb
- cp spec/info_pg_peak_flow.rb spec/info_pg.rb
- cp spec/info_active_record_mysql_peak_flow.rb spec/info_active_record_mysql.rb
- cp spec/info_active_record_mysql2_peak_flow.rb spec/info_active_record_mysql2.rb
- cp spec/info_active_record_pg_peak_flow.rb spec/info_active_record_pg.rb
rvm: true
services:
postgres:
environment:
POSTGRES_USER: "build"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "baza"
expose:
- 5432
image: postgres:11.4
restart_policy: on-failure
mysql:
environment:
- MYSQL_USER=build
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=baza
image: mysql:5.7.29
expose:
- 3306
restart_policy: on-failure
builds:
build_1:
environment:
RUBY_VERSION: 2.7.8
name: Ruby 2.7.8
script:
- bundle exec rspec --tag ~@mysql
build_2:
environment:
RUBY_VERSION: 3.0.5
name: Ruby 3.0.5
script:
- bundle exec rspec --tag ~@mysql
build_3:
environment:
RUBY_VERSION: 3.1.4
name: Ruby 3.1.4
script:
- bundle exec rspec --tag ~@mysql
build_4:
environment:
RUBY_VERSION: 3.2.2
name: Ruby 3.2.2
script:
- bundle exec rspec --tag ~@mysql
build_5:
environment:
RUBY_VERSION: jruby-head
name: JRuby head
script:
- bundle exec rspec --tag ~@mysql
build_5:
name: Linters
script:
- bundle exec rake best_practice_project:run