Re-organised travis testing

This commit is contained in:
Søren Debois 2016-04-13 08:17:25 +02:00
parent c3dbdc637d
commit cca7cb7696
2 changed files with 13 additions and 9 deletions

View file

@ -3,7 +3,5 @@ install:
- npm install -g elm
- elm-package install -y
script:
- elm-make --yes examples/Component.elm
- elm-make --yes examples/Component-TEA.elm
- cd demo && elm-make --yes Demo.elm
- make test

View file

@ -1,13 +1,19 @@
ELM=elm-make --yes
PAGES=../elm-mdl-gh-pages
comp:
elm-make examples/Component.elm --warn --output elm.js
demo:
(cd demo; elm-make Demo.elm --warn --output ../elm.js)
(cd demo; $(ELM) Demo.elm --warn --output ../elm.js)
comp:
$(ELM) examples/Component.elm --warn --output elm.js
comp-tea:
$(ELM) examples/Component.elm --warn --output elm.js
docs:
elm-make --docs=docs.json
$(ELM) --docs=docs.json
test: docs comp comp-tea docs
wip-pages :
(cd demo; elm-make Demo.elm --output ../$(PAGES)/wip.js)
@ -27,4 +33,4 @@ distclean : clean
rm -rf elm-stuff
.PHONY : pages elm.js clean cleanish distclean demo docs
.PHONY : pages elm.js clean cleanish distclean demo docs test