-
-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from ActivityWatch/dev/makefile
Moved build/install/test scripts to Makefile
- Loading branch information
Showing
14 changed files
with
157 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# I recommend creating a virtualenv as such before running before this makefile: | ||
# - virtualenv --python=python3 venv | ||
# - source ./venv/bin/activate | ||
|
||
.PHONY: build install test clean | ||
|
||
# TODO: Currently no way to do a `setup.py develop`/`pip install --editable` | ||
build: | ||
make --directory=aw-core build | ||
make --directory=aw-client build | ||
# | ||
make --directory=aw-webui build | ||
cp -r aw-webui/dist/* aw-server/aw_server/static/ | ||
# | ||
make --directory=aw-server build | ||
make --directory=aw-watcher-afk build | ||
make --directory=aw-watcher-window build | ||
make --directory=aw-qt build | ||
|
||
install: | ||
make --directory=aw-qt install | ||
# Installation is already happening in the `make build` step currently. | ||
# We might want to change this. | ||
# bash scripts/install.sh | ||
|
||
test: | ||
make --directory=aw-core test | ||
make --directory=aw-qt test | ||
# TODO: Move "integration tests" to aw-client | ||
./scripts/integration_tests.sh | ||
|
||
package: | ||
mkdir -p dist/activitywatch | ||
# | ||
make --directory=aw-watcher-afk package | ||
cp -r aw-watcher-afk/dist/aw-watcher-afk/* dist/activitywatch | ||
# | ||
make --directory=aw-watcher-window package | ||
cp -r aw-watcher-window/dist/aw-watcher-window/* dist/activitywatch | ||
# | ||
make --directory=aw-server package | ||
cp -r aw-server/dist/aw-server/* dist/activitywatch | ||
# | ||
make --directory=aw-qt package | ||
cp -r aw-qt/dist/aw-qt/* dist/activitywatch | ||
# | ||
bash scripts/package-zip.sh | ||
|
||
clean: | ||
rm -r build dist | ||
mkdir dist | ||
mkdir dist/activitywatch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aw-client
updated
5 files
+7 −3 | .travis.yml | |
+4 −0 | Makefile | |
+2 −0 | aw_client/__init__.py | |
+95 −51 | aw_client/client.py | |
+4 −2 | aw_client/config.py |
Submodule aw-core
updated
5 files
+2 −2 | .travis.yml | |
+7 −0 | Makefile | |
+3 −0 | aw_core/__init__.py | |
+38 −0 | aw_core/decorators.py | |
+8 −6 | aw_datastore/__init__.py |
Submodule aw-qt
updated
11 files
+4 −4 | .travis.yml | |
+15 −0 | Makefile | |
+0 −1 | aw_qt/gui/__init__.py | |
+2 −2 | aw_qt/main.py | |
+10 −18 | aw_qt/manager.py | |
+1 −2 | aw_qt/trayicon.py | |
+0 −7 | build.sh | |
+ − | img/sagan-smiling.jpg | |
+14 −0 | resources/aw-qt.desktop | |
+21 −0 | scripts/config-autostart.sh | |
+0 −1 | setup.py |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ serverpid=$! | |
|
||
sleep 2 | ||
|
||
nosetests aw-server | ||
pytest aw-server | ||
tests_exitcode=$? | ||
|
||
kill $serverpid | ||
|
Oops, something went wrong.