-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoNightly.bash
executable file
·55 lines (42 loc) · 1.14 KB
/
doNightly.bash
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
source /home/rein/oec_web/venv/bin/activate
echo "Pulling latest OEC"
pushd ../open_exoplanet_catalogue
git pull
popd
echo "Clean github host key"
ssh-keygen -R github.com
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo "Working on exoplanet.eu"
python generate_exoplaneteu_systems.py download
echo "Working on ExoplanetArchive"
python generate_exoplanetarchive_systems.py download
echo "Working on Open Exoplanet Catalogue (only checking for new planets)"
python generate_openexoplanetcatalogue_systems.py
echo "Updating OEC"
pushd ../open_exoplanet_catalogue
cp systems/Sun.xml systems_exoplaneteu/
cp systems/Sun.xml systems_exoplanetarchive/
python cleanup.py systems_exoplaneteu
python cleanup.py systems_exoplanetarchive
git commit -a -m "Automated nightly update from oec_continuity"
git push
popd
echo "Updating OEC_gzip"
pushd ../oec_gzip
./update_everything.bash
popd
echo "Updating OEC_tables"
pushd ../oec_tables
./update_everything.bash
popd
echo "Updating OEC_iphone"
pushd ../oec_iphone/scripts
python create_data_iphone_11.python
popd
pushd ../oec_meta/
./update_everything.bash
popd
pushd ../oec_web/
touch oec.wsgi
popd