stages: - test - deploy jobs: include: - stage: test language: node_js node_js: - 12 name: "Lint src and check docs" cache: npm: true directories: - ~/.cache script: - cd tools - git clone --depth=1 https://github.com/wenzhixin/bootstrap-table-examples - npm run pre-commit if: branch != master AND type = pull_request - stage: test language: node_js node_js: - 12 name: "Cypress Test" cache: npm: true directories: - ~/.cache script: - git clone --depth=1 https://github.com/wenzhixin/bootstrap-table-examples cypress/html - npm run css:build:src - npm run test if: branch != master AND type = pull_request - stage: deploy name: "Deploy docs" language: ruby rvm: - 2.4.1 before_install: - nvm install 12 script: ./deploy.sh if: branch = master AND type = push cache: bundler env: global: - ENCRYPTION_LABEL: "5453d0fdf68a" - COMMIT_AUTHOR_EMAIL: "wenzhixin2010@gmail.com"