-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 749 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 749 Bytes
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
SHELL=/bin/bash
ENV=posty
RUN=posty.py
run:
source activate $(ENV) && python $(RUN) && source deactivate
setup:
conda env create --file environment.yml
clean:
conda env remove --name $(ENV) --yes
conda clean --source-cache --yes
test: setup run clean
# Platform Commands
# Windows
setup-win:
rm -f chromedriver
cp drivers/windows/chromedriver .
test-win: setup-win test
# Linux
setup-linux:
rm -f chromedriver
cp drivers/linux/chromedriver .
test-linux: setup-linux test
# Installs Anaconda on Linux (good for Ubuntu Subsystem)
setup-conda:
wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh
bash Anaconda-2.3.0-Linux-x86_64.sh