forked from robertmartin8/PyPortfolioOpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (42 loc) · 1.16 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!make
PROJECT_VERSION := $(shell python setup.py --version)
SHELL := /bin/bash
PACKAGE := pypfopt
# needed to get the ${PORT} environment variable
include .env
export
.PHONY: help build test tag pypi
.DEFAULT: help
help:
@echo "make build"
@echo " Build the docker image."
@echo "make test"
@echo " Build the docker image for testing and run them."
@echo "make doc"
@echo " Construct the documentation."
@echo "make tag"
@echo " Make a tag on Github."
jupyter:
echo "http://localhost:${PORT}"
docker-compose up jupyter
build:
docker-compose build pypfopt
test:
mkdir -p artifacts
docker-compose -f docker-compose.test.yml run sut
tag: test
git tag -a ${PROJECT_VERSION} -m "new tag"
git push --tags
# push to pypi
#pypi: tag
# python setup.py sdist
# twine check dist/*
# twine upload dist/*
# push to dockerhub
# you will need a free account on dockerhub and do docker login...
#hub: tag
# docker build --file binder/Dockerfile --tag ${IMAGE}:latest --no-cache .
# docker push ${IMAGE}:latest
# docker tag ${IMAGE}:latest ${IMAGE}:${PROJECT_VERSION}
# docker push ${IMAGE}:${PROJECT_VERSION}
# docker rmi -f ${IMAGE}:${PROJECT_VERSION}