-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (32 loc) · 1.64 KB
/
Makefile
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
38
TEST_PATH=./tests
USERNAME=s144448
test:
PYTHONPATH=. py.test --verbose --color=yes $(TEST_PATH)
push:
ssh simba mkdir -p ~/mthesis
ssh simba mkdir -p ~/mthesis/artifacts
rsync -avu ./data pethick@simba.epfl.ch:~/mthesis
rsync -avu ./src pethick@simba.epfl.ch:~/mthesis
rsync -av ./notebook_header.py pethick@simba.epfl.ch:~/mthesis
rsync -av ./explorer_helper.py pethick@simba.epfl.ch:~/mthesis
rsync -av ./runner.py pethick@simba.epfl.ch:~/mthesis
rsync -av ./hpc.sh pethick@simba.epfl.ch:~/mthesis
sync-dtu:
#ssh $(USERNAME)@login2.hpc.dtu.dk mkdir ~/mthesis
#ssh $(USERNAME)@login2.hpc.dtu.dk mkdir ~/mthesis/artifacts
#rsync -avu ./data $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
rsync -avu ./src $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
#rsync -av ./SparseGridCode $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
rsync -av ./notebook_header.py $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
rsync -av ./explorer_helper.py $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
rsync -av ./runner.py $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
rsync -av ./hpc-dtu.sh.template $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
rsync -av ./run_growth_model.sh $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
rsync -av ./run_growth_model.py $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
rsync -av ./install_growth.sh $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
rsync -av ./setup_env.sh $(USERNAME)@login2.hpc.dtu.dk:~/mthesis
#rsync -av ./IPOPT $(USERNAME)@login2.hpc.dtu.dk:~/mthesis # Copied from asgp! don't destroy!
rsync -av $(USERNAME)@login2.hpc.dtu.dk:~/mthesis/output ./
run-growth: sync-dtu
ssh $(USERNAME)@login2.hpc.dtu.dk 'source /etc/profile; cd ~/mthesis; bsub < run_growth_model.sh'
.PHONY: test