-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 797 Bytes
/
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
.phony : all, build, web, test, clean
DOCKER_IMAGE=myspace
all: build
build:
-rm -f Manifest.toml docs/Manifest.toml
docker build -t ${DOCKER_IMAGE} .
docker-compose build
docker-compose run --rm julia julia --project=/work -e 'using Pkg; Pkg.instantiate()'
docker-compose run --rm julia 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 julia julia -e 'using Pkg; Pkg.activate("."); Pkg.test()'
clean:
-docker-compose down
-rm -f Manifest.toml docs/Manifest.toml
-rm -rf docs/build