-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinstall-dev.sh
24 lines (21 loc) · 1.3 KB
/
install-dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# DEVELOPER INSTALLATION SCRIPT
# You must have Java Development Kit (JDK) 8 (1.8). If higher (>8) then it must
# support --release flag to pin down the version when compiling.
# Always compile with 8 (1.8) to keep backward compatibility.
# In conda, you can get a JDK version that supports --release flag:
# conda install openjdk
javac --version && # java version
javac --release 8 src/actipy/*.java && # compile java files (using release 8)
pip install -e .[dev,docs] # install in edit mode
# Download tiny sample data used for unit tests
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/data/samples/ax3/tiny-sample.cwa.gz
# Copies for multiprocessing unit tests
cp tests/data/tiny-sample.cwa.gz tests/data/tiny-sample1.cwa.gz
cp tests/data/tiny-sample.cwa.gz tests/data/tiny-sample2.cwa.gz
# Test data for unit tests
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/read.csv.gz
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/lowpass.csv.gz
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/calib.csv.gz
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/nonwear.csv.gz
wget -P tests/data/ https://wearables-files.ndph.ox.ac.uk/files/actipy/tests/data/resample.csv.gz