Turn on strict compilation (#35)
This commit is contained in:
parent
61ce3cf0fe
commit
16e84c1501
@ -9,7 +9,7 @@ install:
|
|||||||
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
|
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
|
||||||
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
|
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
|
||||||
- chmod a+x $HOME/purescript
|
- chmod a+x $HOME/purescript
|
||||||
- npm install -g bower pulp
|
- npm install -g bower pulp purescript-psa
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
after_success:
|
after_success:
|
||||||
|
15
Makefile
15
Makefile
@ -46,7 +46,8 @@ $(COMPONENTS): $(BOWERJSON)
|
|||||||
$(BUILD): $(COMPONENTS) $(SOURCES)
|
$(BUILD): $(COMPONENTS) $(SOURCES)
|
||||||
$(PULP) build \
|
$(PULP) build \
|
||||||
--src-path $(SRCPATH) \
|
--src-path $(SRCPATH) \
|
||||||
--build-path $(BUILD)
|
--build-path $(BUILD) \
|
||||||
|
-- --stash --censor-lib --strict
|
||||||
touch $(BUILD)
|
touch $(BUILD)
|
||||||
build: $(BUILD)
|
build: $(BUILD)
|
||||||
|
|
||||||
@ -62,7 +63,8 @@ $(EXAMPLE_INDEX): $(OUTPUT_EXAMPLE) $(BUILD) $(EXAMPLEPATH)/Main.purs
|
|||||||
--include $(SRCPATH) \
|
--include $(SRCPATH) \
|
||||||
--build-path $(BUILD) \
|
--build-path $(BUILD) \
|
||||||
--main $(EXAMPLE) \
|
--main $(EXAMPLE) \
|
||||||
--to $(EXAMPLE_INDEX)
|
--to $(EXAMPLE_INDEX) \
|
||||||
|
-- --stash --censor-lib --strict
|
||||||
|
|
||||||
# Run the example specified by the environment variable EXAMPLE
|
# Run the example specified by the environment variable EXAMPLE
|
||||||
ifeq ($(EXAMPLE),)
|
ifeq ($(EXAMPLE),)
|
||||||
@ -83,14 +85,16 @@ test: $(BUILD) $(TESTSOURCES) $(EXAMPLESOURCES)
|
|||||||
--test-path $(TESTPATH) \
|
--test-path $(TESTPATH) \
|
||||||
--include $(EXAMPLESPATH) \
|
--include $(EXAMPLESPATH) \
|
||||||
--build-path $(BUILD) \
|
--build-path $(BUILD) \
|
||||||
--main $(TESTMAIN)
|
--main $(TESTMAIN) \
|
||||||
|
-- --stash --censor-lib --strict
|
||||||
|
|
||||||
# Launch a repl with all modules loaded
|
# Launch a repl with all modules loaded
|
||||||
repl: $(COMPONENTS) $(SOURCES) $(TESTSOURCES) $(EXAMPLESOURCES)
|
repl: $(COMPONENTS) $(SOURCES) $(TESTSOURCES) $(EXAMPLESOURCES)
|
||||||
$(PULP) repl \
|
$(PULP) repl \
|
||||||
--include $(EXAMPLESPATH) \
|
--include $(EXAMPLESPATH) \
|
||||||
--src-path $(SRCPATH) \
|
--src-path $(SRCPATH) \
|
||||||
--test-path $(TESTPATH)
|
--test-path $(TESTPATH) \
|
||||||
|
-- --stash --censor-lib --strict
|
||||||
|
|
||||||
# Remove all make output from the source tree
|
# Remove all make output from the source tree
|
||||||
clean:
|
clean:
|
||||||
@ -112,7 +116,8 @@ help:
|
|||||||
# Build the documentation
|
# Build the documentation
|
||||||
$(OUTPUT_DOCS): $(COMPONENTS) $(SOURCES)
|
$(OUTPUT_DOCS): $(COMPONENTS) $(SOURCES)
|
||||||
$(PULP) docs \
|
$(PULP) docs \
|
||||||
--src-path $(SRCPATH)
|
--src-path $(SRCPATH) \
|
||||||
|
-- --stash --censor-lib --strict
|
||||||
rm -rf $(OUTPUT_DOCS)
|
rm -rf $(OUTPUT_DOCS)
|
||||||
mv generated-docs $(OUTPUT_DOCS)
|
mv generated-docs $(OUTPUT_DOCS)
|
||||||
docs: $(OUTPUT_DOCS)
|
docs: $(OUTPUT_DOCS)
|
||||||
|
Loading…
Reference in New Issue
Block a user