bitbucket-pipelines.yml in redmine_crm-0.0.36 vs bitbucket-pipelines.yml in redmine_crm-0.0.37
- old
+ new
@@ -6,12 +6,26 @@
image: ruby:2.3.0
pipelines:
default:
- step:
- script: # Modify the commands below to build your repository.
- - bundler --version
+ script:
- bundle install
- - gem install byebug
- - gem install rails -v 5.1.2
- - gem install sqlite3
- - rake test
\ No newline at end of file
+ - bundle exec rake test DB=sqlite
+ - bundle exec rake test DB=postgresql
+ - bundle exec rake test DB=mysql
+ services:
+ - mysql
+ - postgres
+
+definitions:
+ services:
+ mysql:
+ image: mysql
+ environment:
+ MYSQL_DATABASE: redmine_crm_test
+ MYSQL_ROOT_PASSWORD: password
+ postgres:
+ image: postgres
+ environment:
+ POSTGRES_DB: redmine_crm_test
+ POSTGRES_PASSWORD: password