Skip to content

Commit

Permalink
Replace aw-server with aw-server-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-bjareholt committed Feb 1, 2020
1 parent 5bfdb3d commit 2ddeef5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 deletions.
7 changes: 7 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ install:
# not already installed.
- ps: if (-not(Test-Path($env:PYTHON))) { & scripts\ci\install_python.ps1 }

# Install Rust nightly and add it to PATH
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain nightly
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV

# Required in order to get `make` to work
- "copy C:\\MinGW\\bin\\mingw32-make.exe C:\\MinGW\\bin\\make.exe"

Expand Down
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
[submodule "aw-client"]
path = aw-client
url = https://github.com/ActivityWatch/aw-client.git
[submodule "aw-server"]
path = aw-server
url = https://github.com/ActivityWatch/aw-server.git
[submodule "aw-watcher-afk"]
path = aw-watcher-afk
url = https://github.com/ActivityWatch/aw-watcher-afk.git
Expand All @@ -16,3 +13,6 @@
[submodule "aw-watcher-window"]
path = aw-watcher-window
url = https://github.com/ActivityWatch/aw-watcher-window.git
[submodule "aw-server-rust"]
path = aw-server-rust
url = https://github.com/ActivityWatch/aw-server-rust.git
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ before_install:
fi
# Upgrade pip
- python3 -m pip install --upgrade pip wheel;
# Install Rust
- curl https://build.travis-ci.org/files/rustup-init.sh -sSf | sh -s -- -y --default-toolchain nightly
- export PATH="$HOME/.cargo/bin:$PATH";
# Print version used
- python3 --version
- pip3 --version
Expand Down
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ build:
#
make --directory=aw-core build DEV=$(DEV)
make --directory=aw-client build DEV=$(DEV)
make --directory=aw-server build DEV=$(DEV)
make --directory=aw-watcher-afk build DEV=$(DEV)
make --directory=aw-watcher-window build DEV=$(DEV)
make --directory=aw-server-rust build
make --directory=aw-qt build DEV=$(DEV)
# The below is needed due to: https://github.com/ActivityWatch/activitywatch/issues/173
make --directory=aw-client build DEV=$(DEV)
make --directory=aw-core build DEV=$(DEV)
#
python3 -c "import aw_server; print(aw_server.__version__)"


# Install
Expand Down Expand Up @@ -97,7 +95,6 @@ lint:
aw-core/aw_transform/ \
aw-core/aw_analysis/ \
aw-client/aw_client/ \
aw-server/aw_server/ \
aw-watcher-window/aw_watcher_window/ \
aw-watcher-afk/aw_watcher_afk/ \
aw-qt/aw_qt/
Expand All @@ -116,7 +113,7 @@ uninstall:
test:
make --directory=aw-core test
make --directory=aw-client test
make --directory=aw-server test
make --directory=aw-server-rust test
make --directory=aw-qt test

test-integration:
Expand Down Expand Up @@ -160,8 +157,8 @@ package:
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-server-rust package
cp -r aw-server-rust/target/package/* dist/activitywatch
#
make --directory=aw-qt package
cp -r aw-qt/dist/aw-qt/. dist/activitywatch
Expand Down
1 change: 0 additions & 1 deletion aw-server
Submodule aw-server deleted from c2fdfe
1 change: 1 addition & 0 deletions aw-server-rust
Submodule aw-server-rust added at 5d9697

0 comments on commit 2ddeef5

Please sign in to comment.