├── project ├── features │ └── travis.feature ├── behat.yml └── bootstrap │ └── FeatureContext.php ├── .travis.yml ├── composer.json ├── Dockerfile ├── README.md └── .zshrc /project/features/travis.feature: -------------------------------------------------------------------------------- 1 | Feature: Travis CI 2 | I need to be able to see Travis CI 3 | 4 | Scenario: I can see Travis CI 5 | When I go to "/" 6 | Then I should see "Travis CI" -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: bash 2 | sudo: required 3 | services: 4 | - docker 5 | script: 6 | - docker build -t tvial/behat . 7 | - docker run -ti -h docker-behat -v "$(pwd)/project":/root/project tvial/behat behat -------------------------------------------------------------------------------- /project/behat.yml: -------------------------------------------------------------------------------- 1 | default: 2 | autoload: %paths.base%/bootstrap/ 3 | extensions: 4 | Behat\MinkExtension: 5 | base_url: https://travis-ci.com/ 6 | default_session: goutte 7 | goutte: ~ 8 | -------------------------------------------------------------------------------- /project/bootstrap/FeatureContext.php: -------------------------------------------------------------------------------- 1 |