dist: bionic

addons:
  apt:
    sources:
      - sourceline: 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main'
        key_url: 'https://dl.google.com/linux/linux_signing_key.pub'
    packages:
      - google-chrome-stable
services:
  - xvfb

language: python
python:
- '3.7.9'

before_install:
- wget "https://chromedriver.storage.googleapis.com/$(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip"
- unzip chromedriver_linux64.zip
- sudo mv chromedriver /usr/local/bin
- sudo chmod a+x /usr/local/bin/chromedriver

install:
- pip install -r requirements.txt
- pip install coveralls

script:
- coverage run --source=flash setup.py test
- docker build . -t textbook/flash

after_success: coveralls

deploy:
  - provider: cloudfoundry
    edge: true
    api: https://api.run.pivotal.io
    username: $CF_USERNAME
    password: $CF_PASSWORD
    organization: $CF_ORGANIZATION
    space: $CF_SPACE
    manifest: manifest.yml

dist: bionic

addons:
  apt:
    sources:
      - sourceline: 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main'
        key_url: 'https://dl.google.com/linux/linux_signing_key.pub'
    packages:
      - google-chrome-stable
services:
  - xvfb

language: python
python:
- '3.7.9'

before_install:
- wget "https://chromedriver.storage.googleapis.com/$(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip"
- unzip chromedriver_linux64.zip
- sudo mv chromedriver /usr/local/bin
- sudo chmod a+x /usr/local/bin/chromedriver

install:
- pip install -r requirements.txt
- pip install coveralls

script:
- coverage run --source=flash setup.py test
- docker build . -t textbook/flash

after_success: coveralls

deploy:
  - provider: cloudfoundry
    edge: true
    api: https://api.run.pcfone.io
    username: $CF_USERNAME
    password: $CF_PASSWORD
    organization: pivot-jsharpe
    space: flash
    manifest: manifest.yml

Migrate from PWS to PCFOne
Migrate from PWS to PCFOne

Pivotal Web Services is only available until 2021/01/15 per:
https://blog.run.pivotal.io/pivotal-web-services-end-of-availability-announcement-and-timeline/
