You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#. Make sure that you have virtualenv installed. If not type::
17
+
18
+
sudo pip install virtualenv
19
+
20
+
#. Create a virtualenv for the project::
21
+
22
+
make env
23
+
24
+
Configure Environment and Run
25
+
-----------------------------
26
+
27
+
#. TODO: Talk about how to configure the root dcos cli
28
+
29
+
#. :code:`source` the setup file to add the :code:`dcos-spark` command line interface to your
30
+
:code:`PATH`::
31
+
32
+
source env/bin/activate
33
+
34
+
#. Get started by calling the DCOS Spark CLI's help::
35
+
36
+
dcos-spark help
37
+
38
+
When invoking dcos subcommands from the dev env it includes the :code:`dcos-` as a prefix, however when this is included into DCOS it will be a subcommand of dcos and will be invoked by :code:`dcos spark`. :code:`dcos-spark help` translates to :code:`dcos spark help` when installed into the dcos-cli.
39
+
40
+
#. Leaving the env
41
+
42
+
deactivate
43
+
44
+
Binary:
45
+
-----------
46
+
47
+
Create Binary:
48
+
##############
49
+
50
+
#. Install pyinstaller::
51
+
52
+
pip install pyinstaller
53
+
54
+
#. Create spark cli binary::
55
+
56
+
make binary
57
+
58
+
59
+
Running Tests:
60
+
--------------
61
+
62
+
Setup
63
+
#####
64
+
65
+
Tox, our test runner, tests against both Python 2.7 and Python 3.4 environments.
66
+
67
+
If you're using OS X, be sure to use the officially distributed Python 3.4 installer_ since the
68
+
Homebrew version is missing a necessary library.
69
+
70
+
Running
71
+
#######
72
+
73
+
Tox will run unit and integration tests in both Python environments using a temporarily created
74
+
virtualenv.
75
+
76
+
You should ensure :code:`DCOS_CONFIG` is set and that the config file points to the Marathon
77
+
instance you want to use for integration tests.
78
+
79
+
There are two ways to run tests, you can either use the virtualenv created by :code:`make env`
80
+
above::
81
+
82
+
make test
83
+
84
+
Or, assuming you have tox installed (via :code:`sudo pip install tox`)::
0 commit comments