Add multi-version (1.7, 1.8, 1.9, 1.10)
Make Travis run all of those. Also remove O/S update for libstdc++6 to see if Lumo version pinning is sufficient.
This commit is contained in:
parent
71d7ced0a0
commit
3a4dc74765
4 changed files with 20 additions and 10 deletions
|
|
@ -9,14 +9,10 @@ cache:
|
||||||
- $TRAVIS_BUILD_DIR/node_modules
|
- $TRAVIS_BUILD_DIR/node_modules
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
||||||
- sudo apt-get -qq update
|
|
||||||
- sudo apt-get install -y libstdc++6
|
|
||||||
- strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
|
|
||||||
- sudo apt-get install -y leiningen
|
- sudo apt-get install -y leiningen
|
||||||
- npm install lumo-cljs@1.9.0-alpha -g
|
- npm install lumo-cljs@1.9.0-alpha -g
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- jdk_switcher use openjdk8
|
- jdk_switcher use openjdk8
|
||||||
|
|
||||||
script: lein do check, eastwood, test, tach lumo, test-readme
|
script: lein do check, eastwood, test-all, tach lumo, test-readme
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
* Add examples of table/column aliases to the README. Fix #215. (@seancorfield)
|
* Add examples of table/column aliases to the README. Fix #215. (@seancorfield)
|
||||||
* Refactor parameterizer to use multimethods. PR #214. (@xlevus)
|
* Refactor parameterizer to use multimethods. PR #214. (@xlevus)
|
||||||
* Add examples of `raw` and `inline` to the README. Fix #213. (@seancorfield)
|
* Add examples of `raw` and `inline` to the README. Fix #213. (@seancorfield)
|
||||||
|
* Add multi-version testing for Clojure 1.7, 1.8, 1.9, 1.10 (master) (@seancorfield)
|
||||||
* Bring all dependencies up-to-date. (@seancorfield)
|
* Bring all dependencies up-to-date. (@seancorfield)
|
||||||
* Add `run-tests.sh` to make it easier to run the same tests manually that run on TravisCI. (@seancorfield)
|
* Add `run-tests.sh` to make it easier to run the same tests manually that run on TravisCI. (@seancorfield)
|
||||||
* Add `deps.edn` to support `clj`/`tools.deps.alpha`. (@seancorfield)
|
* Add `deps.edn` to support `clj`/`tools.deps.alpha`. (@seancorfield)
|
||||||
|
|
|
||||||
15
project.clj
15
project.clj
|
|
@ -5,9 +5,12 @@
|
||||||
:url "https://github.com/jkk/honeysql"
|
:url "https://github.com/jkk/honeysql"
|
||||||
:scm {:name "git"
|
:scm {:name "git"
|
||||||
:url "https://github.com/jkk/honeysql"}
|
:url "https://github.com/jkk/honeysql"}
|
||||||
:dependencies [[org.clojure/clojure "1.8.0"]
|
:dependencies [[org.clojure/clojure "1.9.0"]
|
||||||
[net.cgrand/macrovich "0.2.1"]]
|
[net.cgrand/macrovich "0.2.1"]]
|
||||||
:aliases {"test-readme" ["with-profile" "midje" "midje"]}
|
:aliases {"test-readme" ["with-profile" "midje" "midje"]
|
||||||
|
"test-all" ["with-profile"
|
||||||
|
"default:1.7,default:1.8,default:1.9,default:master"
|
||||||
|
"test"]}
|
||||||
:cljsbuild {:builds {:release {:source-paths ["src"]
|
:cljsbuild {:builds {:release {:source-paths ["src"]
|
||||||
:compiler {:output-to "dist/honeysql.js"
|
:compiler {:output-to "dist/honeysql.js"
|
||||||
:optimizations :advanced
|
:optimizations :advanced
|
||||||
|
|
@ -31,8 +34,12 @@
|
||||||
[honeysql.helpers :refer :all :as helpers]
|
[honeysql.helpers :refer :all :as helpers]
|
||||||
[honeysql.format :as fmt]
|
[honeysql.format :as fmt]
|
||||||
[honeysql.helpers :refer [defhelper]]"}}
|
[honeysql.helpers :refer [defhelper]]"}}
|
||||||
:dev {:dependencies [[org.clojure/clojure "1.8.0"]
|
:master {:repositories [["snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"]]
|
||||||
[org.clojure/clojurescript "1.9.521"]
|
:dependencies [[org.clojure/clojure "1.10.0-master-SNAPSHOT"]]}
|
||||||
|
:1.9 {:dependencies [[org.clojure/clojure "1.9.0"]]}
|
||||||
|
:1.8 {:dependencies [[org.clojure/clojure "1.8.0"]]}
|
||||||
|
:1.7 {:dependencies [[org.clojure/clojure "1.7.0"]]}
|
||||||
|
:dev {:dependencies [[org.clojure/clojurescript "1.9.521"]
|
||||||
[cljsbuild "1.1.7"]]
|
[cljsbuild "1.1.7"]]
|
||||||
:plugins [[lein-cljsbuild "1.1.7"]
|
:plugins [[lein-cljsbuild "1.1.7"]
|
||||||
[jonase/eastwood "0.2.6"]
|
[jonase/eastwood "0.2.6"]
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,10 @@
|
||||||
# See .travis.yml for details of the test environment.
|
# See .travis.yml for details of the test environment.
|
||||||
#
|
#
|
||||||
rm -rf test/readme.clj
|
rm -rf test/readme.clj
|
||||||
lein do clean, check, eastwood, test, tach lumo, test-readme
|
if test "$1" = "all"
|
||||||
|
then
|
||||||
|
clj_test="test-all"
|
||||||
|
else
|
||||||
|
clj_test="test"
|
||||||
|
fi
|
||||||
|
lein do clean, check, eastwood, $clj_test, tach lumo, test-readme
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue