-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (29 loc) · 974 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
28
29
30
31
32
33
34
35
SHELL=/bin/bash
IRIDA_VERSION?=master
all: clean requirements windows
clean:
rm -rf .cache
rm -rf pynsist_pkgs
rm -rf .virtualenv
rm -rf build
rm -rf wxPython3.0-win32-3.0.2.0-py27.exe
find -name "*pyc" -delete
rm -rf Tests/integrationTests/repos/
requirements:
virtualenv -p python2 .virtualenv
source .virtualenv/bin/activate
pip install -r requirements.txt
deactivate
./scripts/virtualenv_wx.sh
windows: requirements
wget --no-clobber http://downloads.sourceforge.net/project/wxpython/wxPython/3.0.2.0/wxPython3.0-win32-3.0.2.0-py27.exe
rm -rf pynsist_pkgs
innoextract -d pynsist_pkgs -s wxPython3.0-win32-3.0.2.0-py27.exe
mv pynsist_pkgs/app/wx-3.0-msw/wx pynsist_pkgs/
rm -rf pynsist_pkgs/{app,code*}
source .virtualenv/bin/activate
pynsist irida-uploader.cfg 2>&1 > /dev/null
test: clean requirements
source .virtualenv/bin/activate
xvfb-run --auto-servernum --server-num=1 py.test --integration --irida-version=$(IRIDA_VERSION)
.ONESHELL: