.gitlab-ci.yml 753 字节
Newer Older
W
init  
wizardforcel 已提交
1 2 3 4
image: node:7

before_script:
    - apt install imagemagick
W
wizardforcel 已提交
5
    - npm install -g pngquant-bin
W
init  
wizardforcel 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
    - npm install sync-request
    - npm install cheerio
    - npm install gen-epub@git+https://github.com/258ch/gen-epub
    
job:
  script:
    - node kaggle $NAME
  except:
    - pushes
    - merge_requests
    
after_script:
  - mkdir out
  - mv *.epub out/
  - cd out
  - git init
  - git config user.name ${GL_UN}
  - git config user.email ${GL_EMAIL}
  - git add -A
  - git commit -am "$(date "+%Y-%m-%d %H:%M:%S")"
W
wizardforcel 已提交
26
  - git push "https://oauth2:${GL_TOKEN}@gitlab.com/${GL_USER}/${GL_REPO}.git" master:${GL_BRANCH} -f
W
init  
wizardforcel 已提交
27 28 29 30 31 32 33 34

  
variables:
  GL_UN: wizardforcel
  GL_EMAIL: 562826179@qq.com
  GL_USER: wizardforcel
  GL_REPO: kaggle-crawler
  GL_BRANCH: $NAME