Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.00 KB | None | 0 0
  1. stages:
  2.    - build
  3.     - Static Analysis
  4.     # - test
  5.     # - deploy
  6.  
  7.  
  8. cache:
  9.     untracked: true
  10.     paths:
  11.        - node_modules/
  12.  
  13.  
  14. build vue app:
  15.     image: node:latest
  16.     stage: build
  17.     before_script:
  18.        - cd tripmaster
  19.         - npm install --progress=false
  20.     script:
  21.        - npm run build
  22.     artifacts:
  23.         expire_in: 1 week
  24.         paths:
  25.            - dist
  26.  
  27.  
  28. build flask app:
  29.     image: python:3.7
  30.     stage: build
  31.     before_script:
  32.        - python --version
  33.         - cd server
  34.     script:
  35.        - pip install -r requirements.txt
  36.  
  37.  
  38. pytest:
  39.     dependencies:
  40.        - build flask app
  41.     stage: Static Analysis
  42.     allow_failure: true
  43.     script:
  44.        - python --version
  45.         # - pytest app.py --cov --cov-report term --cov-report html
  46.  
  47.  
  48. flake8:
  49.     dependencies:
  50.        - build flask app
  51.     stage: Static Analysis
  52.     allow_failure: true
  53.     script:
  54.        - flake8 --max-line-length=120 .\app.py .\controllers\gpsController.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement