Snippets

Gordon MacMillan EMj8zg: Untitled snippet

Created by Gordon MacMillan last modified
#bitbucket-pipelines.yml
image: python:3.6.7

pipelines:
  default:
    - step:
        name: Build and test
        caches:
          - pip
          - download
        script:
          - source ci_scripts/install_env.sh && source ci_scripts/install.sh
    - step:
        name: Build docs
        caches:
          - pip
          - download
        script:
          - source ci_scripts/success.sh && source ci_scripts/create_doc.sh $BITBUCKET_BRANCH "doc_result"
        artifacts:
          - doc/$BITBUCKET_BRANCH/**
    # - step:
    #     name: Deploy
    #     deployment: production
    #     script:
    #       - pipe: atlassian/aws-s3-deploy:0.3.2
    #         variables:
    #           AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
    #           AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
    #           AWS_DEFAULT_REGION: "us-west-2"
    #           S3_BUCKET: "tools-docs-dist-prod"
    #           LOCAL_PATH: doc/$BITBUCKET_BRANCH/$BITBUCKET_BRANCH
    #           ACL: "public-read"
    #           CACHE_CONTROL: "max-age=3600"
    #           EXPIRES: "2018-10-01T00:00:00+00:00"
    #           DELETE_FLAG: "true"
    #           EXTRA_ARGS: "--follow-symlinks"

definitions:
  caches:
    download: $HOME/download

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.