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 - npm install -g elm
- elm-package install -y - elm-package install -y
script: script:
- elm-make --yes examples/Component.elm - make test
- elm-make --yes examples/Component-TEA.elm
- cd demo && elm-make --yes Demo.elm

View file

@ -1,14 +1,20 @@
ELM=elm-make --yes
PAGES=../elm-mdl-gh-pages PAGES=../elm-mdl-gh-pages
comp:
elm-make examples/Component.elm --warn --output elm.js
demo: 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: docs:
elm-make --docs=docs.json $(ELM) --docs=docs.json
test: docs comp comp-tea docs
wip-pages : wip-pages :
(cd demo; elm-make Demo.elm --output ../$(PAGES)/wip.js) (cd demo; elm-make Demo.elm --output ../$(PAGES)/wip.js)
(cd $(PAGES); git commit -am "Update."; git push origin gh-pages) (cd $(PAGES); git commit -am "Update."; git push origin gh-pages)
@ -27,4 +33,4 @@ distclean : clean
rm -rf elm-stuff rm -rf elm-stuff
.PHONY : pages elm.js clean cleanish distclean demo docs .PHONY : pages elm.js clean cleanish distclean demo docs test