Sha256: 943aa5e0d32ca017c17a0031d4e81a4a0737e0f0538f942ac7940097323572ed
Contents?: true
Size: 1.39 KB
Versions: 6
Compression:
Stored size: 1.39 KB
Contents
require 'schema_dev/travis' describe SchemaDev::Travis do it "creates travis file" do config = get_config(ruby: %W[1.9.3 2.1.5], rails: %W[4.0 4.1], db: %W[mysql2 postgresql], exclude: { ruby: "1.9.3", db: "postgresql" }, notify: 'me@example.com') in_tmpdir do SchemaDev::Travis.update(config) expect(Pathname.new(".travis.yml").read).to eq <<ENDTRAVIS # This file was auto-generated by the schema_dev tool, based on the data in # ./schema_dev.yml # Please do not edit this file; any changes will be overwritten next time # schema_dev gets run. --- sudo: false rvm: - 1.9.3 - 2.1.5 gemfile: - gemfiles/rails-4.0/Gemfile.mysql2 - gemfiles/rails-4.0/Gemfile.postgresql - gemfiles/rails-4.1/Gemfile.mysql2 - gemfiles/rails-4.1/Gemfile.postgresql env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis addons: postgresql: '9.3' before_script: bundle exec rake create_databases after_script: bundle exec rake drop_databases script: bundle exec rake travis notifications: email: - me@example.com matrix: exclude: - rvm: 1.9.3 gemfile: gemfiles/rails-4.0/Gemfile.postgresql env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis - rvm: 1.9.3 gemfile: gemfiles/rails-4.1/Gemfile.postgresql env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis ENDTRAVIS end end end
Version data entries
6 entries across 6 versions & 1 rubygems