mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-24 08:53:33 +03:00
use ci target
This commit is contained in:
parent
c14d5abc92
commit
8923998ad8
@ -27,4 +27,4 @@ install:
|
||||
- travis_retry $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 make setup
|
||||
|
||||
script:
|
||||
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 make test
|
||||
- $TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 make ci
|
||||
|
20
Makefile
20
Makefile
@ -1,16 +1,14 @@
|
||||
NPM_PREFIX=$(realpath node_modules)
|
||||
PATH:=${NPM_PREFIX}/.bin:${PATH}
|
||||
|
||||
default: test format diff styleguide-app/elm.js
|
||||
|
||||
.PHONY: diff
|
||||
diff: node_modules
|
||||
elm-package diff
|
||||
|
||||
.PHONY: test
|
||||
test: elm-stuff tests/elm-stuff node_modules
|
||||
elm-test
|
||||
|
||||
.PHONY: diff
|
||||
diff: node_modules
|
||||
elm-package diff
|
||||
|
||||
.PHONY: format
|
||||
format: node_modules
|
||||
elm-format --validate src tests styleguide-app
|
||||
@ -24,8 +22,6 @@ styleguide-app/elm.js: styleguide-app/elm-stuff styleguide-app/**/*.elm
|
||||
|
||||
# plumbing
|
||||
|
||||
.PHONY: setup
|
||||
setup: node_modules elm-stuff tests/elm-stuff styleguide-app/elm-stuff
|
||||
|
||||
node_modules: package.json
|
||||
npm install
|
||||
@ -40,3 +36,11 @@ elm-stuff: elm-package.json node_modules
|
||||
%/elm-stuff: %/elm-package.json node_modules
|
||||
cd $(@D); elm-package install --yes
|
||||
touch -m $@
|
||||
|
||||
# special targets for travis, but anyone can use them, really.
|
||||
|
||||
.PHONY: setup
|
||||
setup: node_modules elm-stuff tests/elm-stuff styleguide-app/elm-stuff
|
||||
|
||||
.PHONY: ci
|
||||
ci: test format diff styleguide-app/elm.js
|
||||
|
Loading…
Reference in New Issue
Block a user