forked from BillTheBest/tutum-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (31 loc) · 1.18 KB
/
Makefile
File metadata and controls
37 lines (31 loc) · 1.18 KB
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
test:prepare
venv/bin/pip install mock==0.8.0
venv/bin/python setup.py test
clean:
rm -rf venv build dist tutum.egg-info python-tutum*
rm -f *.tar.gz
find . -name '*.pyc ' -delete
prepare:clean
set -ex
virtualenv venv
git clone -b staging https://github.com/tutumcloud/python-tutum.git && cd python-tutum && ../venv/bin/python setup.py install && cd .. && rm -rf python-tutum
venv/bin/pip install -r requirements.txt
venv/bin/pip install .
retest:
venv/bin/python setup.py test
certs:
curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o cacert.pem
build-osx:prepare
if [ ! -f cacert.pem ]; then make certs; fi
venv/bin/pip install pyinstaller
venv/bin/pyinstaller tutum.spec -y
mv dist/tutum tutum
tutum/tutum -v
tar zcvf tutum-Darwin-x86_64.tar.gz tutum
rm -rf tutum
mv tutum-Darwin-x86_64.tar.gz dist/tutum-Darwin-x86_64.tar.gz
publish-osx:build-osx
venv/bin/pip install awscli
venv/bin/aws s3 cp dist/tutum-Darwin-x86_64.tar.gz s3://files.tutum.co/packages/tutum-cli/Darwin/x86_64/tutum-`cat tutumcli/__init__.py |grep version | grep -o "\'.*\'" | sed "s/'//g"`.tar.gz --acl public-read
publish-pypi:prepare
python setup.py sdist upload