import commands
import os
import time

def git_pull():
    print (os.chdir("/opt/push/jpush-docs/jpush-docs/"))
    print (commands.getstatusoutput("git pull origin renew"))

def set_venv():
    print (os.chdir("/opt/push/jpush-docs/"))
    print (commands.getstatusoutput(". venv/bin/activate"))

def build():
    print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/JPush/"))
    print (commands.getstatusoutput("mkdocs build --clean"))
    print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/JMessage/"))
    print (commands.getstatusoutput("mkdocs build --clean"))
    print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/JSMS/"))
    print (commands.getstatusoutput("mkdocs build --clean"))
    print (os.chdir("/opt/push/jpush-docs/jpush-docs/zh/Index/"))
    print (commands.getstatusoutput("mkdocs build --clean"))

set_venv()

for i in range(1,1000000000):
    git_pull()
    build()
    time.sleep(300)







@@ -423,32 +423,52 @@
 uild --clean%22))%0A
+    time.sleep(100)%0A
     print (os.ch
@@ -516,24 +516,24 @@
 Message/%22))%0A
-
     print (c
@@ -573,32 +573,52 @@
 uild --clean%22))%0A
+    time.sleep(100)%0A
     print (os.ch
@@ -723,24 +723,44 @@
  --clean%22))%0A
+    time.sleep(100)%0A
     print (o
@@ -873,16 +873,36 @@
 clean%22))
+%0A    time.sleep(100)
 %0A%0Aset_ve
@@ -952,16 +952,16 @@
 _pull()%0A
-
     buil
@@ -964,16 +964,68 @@
 build()%0A
+    print time.asctime(time.localtime(time.time()))%0A
     time

fix the auto build time