Permalink
Browse files

Delete what's no pointless.

  • Loading branch information...
marick committed Apr 27, 2012
1 parent e7de9fc commit 81498d15d915c3368fe1e03edb1a2abdde377113
Showing with 6 additions and 280 deletions.
  1. +0 −29 HOW-TO-CONFIGURATION-TEST
  2. +6 −17 HOW-TO-RELEASE
  3. +0 −42 TIDY
  4. +0 −20 bin/compatibility
  5. +0 −2 bin/gather-downloads
  6. +0 −79 bin/run-tests
  7. +0 −28 bin/update-project-files
  8. +0 −63 bin/version
View
@@ -1,29 +0,0 @@
-The process is too manual.
-
-== Assumptions:
-* The midje-version is something like 1.3.0-SNAPSHOT
-
-== To pick a new Clojure version for the main test suite:
-
-* rake fresh
-* One of:
-
-bin/version <midje-version> 1.2.0 1.2.0
-bin/version <midje-version> 1.2.1 1.2.0
-bin/version <midje-version> 1.3.0
-bin/version <midje-version> 1.4.0-alphaN
-
-* Then:
-
-bin/run-tests
-
-[TODO: Make all this work with lein multi.]
-
-== To run a larger compatibility suite:
-
-* bin/update-project-files <midje-version>
-* rake fresh
-* rake upload
-* bin/compatibility <midje-version>
-
-
View
@@ -1,33 +1,22 @@
-The process for pushing a new version is too complicated and
-manual.
-
-
* Update HISTORY
* Do the THINGS TO CHECK BEFORE DEPLOYING (below)
-* Run configuration tests (HOW-TO-CONFIGURATION-TEST
- with midje-version set to a non-snapshot value.
- (Note that this uploads.)
-* DO NOT CLEAN.
-* Use bin/update-project-files and bin/version to set the examples
- appropriately. For example:
- bin/update-project-files 1.3.0
- bin/version 1.3.0 1.2.1 1.2.0
-* bin/gather-downloads
+* rake fresh
+* rake upload
+
* Update README.md (including version number)
* Commit
* git tag -a -m "message" v.x.x.x ;; git push --tags
* Push to github
-* Update example page, if needed.
-* Try out downloads.
+THINGS TO CHECK BEFORE DEPLOYING:
+* `lein multi deps; lein multi midje`
-THINGS TO CHECK BEFORE DEPLOYING:
* uncomment the `:warn-on-reflection true` line in project.clj, and run `lein midje`
to check for any reflection warning inadvertently added. (there will be warnings from
libraries we use that we cannot remove)
* Check for any public vars that shouldn't be visible to users. Hide them.
(map str (vals (ns-publics 'midje.sweet)))
- (pp)
+ (pp)
View
42 TIDY
@@ -1,42 +0,0 @@
-src/midje/checkers:
-total 88
--rw-r--r-- 1 marick marick 2523 Jul 26 16:03 chatty.clj
--rw-r--r-- 1 marick marick 19137 Jul 26 16:03 collection.clj
--rw-r--r-- 1 marick marick 1861 Feb 26 17:50 defining.clj
--rw-r--r-- 1 marick marick 1564 Jul 26 16:03 deprecated.clj
--rw-r--r-- 1 marick marick 1185 Jul 26 16:03 extended_equality.clj
--rw-r--r-- 1 marick marick 2037 Jul 26 16:03 simple.clj
--rw-r--r-- 1 marick marick 824 Jul 26 16:03 util.clj
-
-src/midje/error_handling:
-total 16
--rw-r--r-- 1 marick marick 1530 Jul 26 16:03 monadic.clj
--rw-r--r-- 1 marick marick 787 Jul 26 16:03 semi_sweet_errors.clj
-
-src/midje/ideas:
-total 80
--rw-r--r-- 1 marick marick 251 Jul 26 16:03 arrow_symbols.clj
--rw-r--r-- 1 marick marick 1744 Jul 26 16:03 arrows.clj
--rw-r--r-- 1 marick marick 4269 Jul 26 16:03 background.clj
--rw-r--r-- 1 marick marick 4736 Jul 26 16:03 prerequisites.clj
--rw-r--r-- 1 marick marick 2468 Jul 26 16:03 tabular.clj
-
-src/midje/internal_ideas:
-total 40
--rw-r--r-- 1 marick marick 2022 Jul 26 16:03 expect.clj
--rw-r--r-- 1 marick marick 3233 Jul 26 16:03 file_position.clj
--rw-r--r-- 1 marick marick 1733 Jul 26 17:04 wrapping.clj
-
-src/midje/util:
-total 96
--rw-r--r-- 1 marick marick 954 Feb 26 17:50 debugging.clj
--rw-r--r-- 1 marick marick 1031 Jul 26 16:03 exceptions.clj
--rw-r--r-- 1 marick marick 3485 Jul 26 16:03 form_utils.clj
--rw-r--r-- 1 marick marick 807 Feb 26 17:50 laziness.clj
--rw-r--r-- 1 marick marick 573 Jul 26 16:03 namespace.clj
--rw-r--r-- 1 marick marick 4807 Jul 26 16:03 report.clj
--rw-r--r-- 1 marick marick 213 Feb 26 17:50 strings.clj
--rw-r--r-- 1 marick marick 2375 Jul 26 16:03 thread_safe_var_nesting.clj
--rw-r--r-- 1 marick marick 204 Jul 26 16:03 treelike.clj
--rw-r--r-- 1 marick marick 914 Jul 26 16:03 unify.clj
--rw-r--r-- 1 marick marick 655 Jul 26 16:03 zip.clj
View
@@ -1,20 +0,0 @@
-MIDJE_VERSION=$1
-if [ "" = "$MIDJE_VERSION" ]; then
- echo "No midje version given."
- exit 1
-fi
-
-set -e
-set -x
-
-bin/version $MIDJE_VERSION 1.2.0 1.2.0
-bin/run-tests
-
-bin/version $MIDJE_VERSION 1.2.1 1.2.0
-bin/run-tests
-
-bin/version $MIDJE_VERSION 1.3.0
-bin/run-tests
-
-bin/version $MIDJE_VERSION 1.4.0-beta4
-bin/run-tests
View
@@ -1,2 +0,0 @@
-rm downloads/examples.zip
-zip -r downloads/examples.zip examples/basic
View
@@ -1,79 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'fileutils'
-include FileUtils
-
-ENV["MIDJE_COLORIZE"]="false"
-
-### IMPORTANT
-### If you add any new test directories here,
-### you must also add them to bin/version.
-
-lein_test_runs = %w{examples/semi-sweet-examples
- examples/leiningen-test}
-
-lein_midje_runs = %w{examples/basic
- examples/adder-webapp
- examples/compound-checkers
- examples/leiningen-midje}
-
-cake_midje_runs = %w{}
-
-run_runs = %w{ } # I doubt these are worthwhile any more.
-
-def lein_clean; system("lein clean 2>&1 | grep -v 'Cleaning up'"); end
-def lein_deps; system("lein deps 2>&1 | grep -v 'Copying .* files'"); end
-
-puts "++++++++++++++++++++ Main Tests"
-# system("ls lib")
-puts " lein test"
-system("lein test | grep failure")
-puts " lein midje"
-system("lein midje | grep FAILURE")
-
-puts "++++++++++++++++++++ Lein test tests"
-lein_test_runs.each do | dir |
- puts("= " + dir)
- Dir.chdir(dir) do
- # system("ls lib")
- lein_clean
- puts " lein test"
- system("lein test > ~/tmp/lein.out; diff ~/tmp/lein.out lein-expected-output")
- end
-end
-
-puts "++++++++++++++++++++ Lein midje tests"
-lein_midje_runs.each do | dir |
- puts("= " + dir)
- Dir.chdir(dir) do
- # system("ls -R lib")
- lein_clean
- # Evidently, lein deps now tries to fetch even if the file is already present.
- # lein_deps
- puts " lein midje"
- system("lein midje > ~/tmp/lein.out; diff ~/tmp/lein.out lein-expected-output")
- end
-end
-
-puts "++++++++++++++++++++ Cake midje tests"
-cake_midje_runs.each do | dir |
- puts("= " + dir)
- Dir.chdir(dir) do
- # system("ls lib")
- puts " cake midje"
- system("cake midje > ~/tmp/cake.out; diff ~/tmp/cake.out cake-expected-output")
- end
-end
-
-
-puts "++++++++++++++++++++ Raw running"
-run_runs.each do | dir |
- puts("= " + dir)
- Dir.chdir(dir) do
- # system("ls lib")
- lein_clean
- puts " run"
- system("run > ~/tmp/run.out; diff ~/tmp/run.out run-expected-output")
- end
-end
-
View
@@ -1,28 +0,0 @@
-#!/usr/bin/env ruby
-
-MIDJE_VERSION=ARGV[0]
-unless MIDJE_VERSION
- puts "need version"
- exit 1
-end
-
-PATTERN = /([\[\s]midje\s+)".*"/
-SUBST = '\1'+%Q{"#{MIDJE_VERSION}"}
-
-Dir["**/project.clj"].each do | file |
- puts file
- lines = File.readlines(file)
- new_lines = lines.collect do | line |
- if PATTERN =~ line
- puts " " + line
- puts " " + line.gsub(PATTERN, SUBST)
- line.gsub(PATTERN, SUBST)
- else
- line
- end
- end
- File.open(file, "w") do | io |
- io.puts new_lines.join
- end
-end
-
View
@@ -1,63 +0,0 @@
-#!/usr/bin/env ruby
-
-$directories = %w{examples/adder-webapp examples/basic examples/cake-midje
- examples/compound-checkers examples/leiningen-midje
- examples/leiningen-test examples/semi-sweet-examples
- .}
-
-require 'fileutils'
-include FileUtils
-
-def arg(index, error)
- unless ARGV[index]
- puts "No #{error} version"
- exit 1
- end
- ARGV[index]
-end
-
-
-$midje_version = arg(0, "midje")
-$clojure_version = arg(1, "clojure")
-$clojure_contrib_version = ARGV[2]
-
-
-$clojure_jar="#{ENV['HOME']}/.m2/repository/org/clojure/clojure/#{$clojure_version}/clojure-#{$clojure_version}.jar"
-if $clojure_contrib_version
- $contrib_jar="#{ENV['HOME']}/.m2/repository/org/clojure/clojure-contrib/#{$clojure_contrib_version}/clojure-contrib-#{$clojure_contrib_version}.jar"
-end
-$midje_jar="midje-#{$midje_version}.jar"
-
-def remove_jars(*dirs)
- dirs.each do | dir |
- `rm -f #{File.join(dir, "lib", "clojure-*")}`
- `rm -f #{File.join(dir, "lib", "dev", "*")}`
- end
-end
-
-def install_jars(*dirs)
- dirs.each do | dir |
- libdir = File.join(dir, "lib")
- mkdir(libdir) unless File.exist?(libdir)
- cp $clojure_jar, libdir
- cp $contrib_jar, libdir if $clojure_contrib_version
- devdir = File.join(dir, "lib", "dev")
- mkdir(devdir) unless File.exist?(devdir)
- cp $midje_jar, devdir
- Dir.glob("lib/*.jar").delete_if { | name | name =~ /clojure.*jar/ }.
- each { | jar | `cp #{jar} #{devdir}`}
- end
-end
-
-def make_runs(*dirs)
- dirs.each do | dir |
- if File.exist?("#{dir}/make-run")
- `(cd #{dir}; make-run)`
- end
- end
-end
-
-remove_jars(*$directories)
-install_jars(*$directories)
-make_runs(*$directories)
-exit 0

0 comments on commit 81498d1

Please sign in to comment.