This repository was archived by the owner on Dec 3, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM ruby:2.3 .3
1+ FROM ruby:2.6 .3
22
3- RUN printf "deb http://archive .debian.org/debian/ jessie main\n deb-src http://archive .debian.org/debian/ jessie main\n deb http://security.debian.org jessie /updates main\n deb-src http://security.debian.org jessie /updates main" > /etc/apt/sources.list
3+ RUN printf "deb http://deb .debian.org/debian/ stretch main\n deb-src http://deb .debian.org/debian/ stretch main\n deb http://security.debian.org stretch /updates main\n deb-src http://security.debian.org stretch /updates main" > /etc/apt/sources.list
44
55RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs graphviz
66
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ db_seed:
7979.PHONY : test
8080test : bg
8181 docker-compose run operationcode-psql bash -c " while ! psql --host=operationcode-psql --username=postgres -c 'SELECT 1'; do sleep 5; done;"
82- docker-compose run ${RAILS_CONTAINER} bash -c ' export RAILS_ENV=test && bundle exec rake db:test:prepare && bundle exec rake test && rubocop'
82+ docker-compose run ${RAILS_CONTAINER} bash -c ' export RAILS_ENV=test && bundle exec rake db:test:prepare && bundle exec rake test && bundle exec rubocop'
8383
8484.PHONY : rubocop
8585rubocop :
Original file line number Diff line number Diff line change 11namespace :schools do
22 desc 'Reads from the ./config/code_schools.yml and creates records in the database.'
33 task populate : :environment do
4- schools = YAML ::load_file ( File . join ( './config' , 'code_schools.yml' ) , 'r' )
4+ schools = YAML ::load_file ( File . join ( './config' , 'code_schools.yml' ) )
55 schools . each do |school |
66 begin
77 object = CodeSchool . create! (
You can’t perform that action at this time.
0 commit comments