-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.phony : all, build, web, test, test-parallel, clean
DOCKER_IMAGE=kyurijl
all: build
build:
-rm -f Manifest.toml docs/Manifest.toml
docker build -t ${DOCKER_IMAGE} . --build-arg NB_UID=`id -u`
docker-compose build
docker-compose run --rm shell julia --project=@. -e 'using Pkg; Pkg.instantiate()'
docker-compose run --rm shell julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
# Excecute in docker container
web: docs
julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); \
include("docs/make.jl"); \
using LiveServer; servedocs(host="0.0.0.0"); \
'
test: build
docker-compose run --rm shell julia -e 'using Pkg; Pkg.activate("."); Pkg.test()'
clean:
docker-compose down
-find $(CURDIR) -name "*.ipynb" -type f -delete
-find $(CURDIR) -name "*.html" -type f -delete
-find $(CURDIR) -name "*.gif" -type f -delete
-find $(CURDIR) -name "*.ipynb_checkpoints" -type d -exec rm -rf "{}" +
-rm -f Manifest.toml docs/Manifest.toml
-rm -rf docs/build