Running your scenarios on Travis CI - Cloud

Talend Cloud API Tester Examples

EnrichVersion
Cloud
EnrichProdName
Talend Cloud
EnrichPlatform
Talend API Tester
task
Design and Development > Testing APIs
Configure Travis CI to run your tests.

Before you begin

  • You have a GitHub account.
  • You know how to launch Talend Cloud API Tester from the CLI.
  • You have installed the Talend Cloud API Tester Maven plugin.

Procedure

  1. Push your scenario to a GitHub repository.

    Make sure to push the two test files:

    • The JSON file containing your scenario
    • The pom.xml configuration file
    Note: Talend Cloud API Tester has a GitHub integration to help you push your test files to GitHub.
  2. Go to your profile page on https://travis-ci.org, find your GitHub repository, and switch it on.
  3. Create a .travis.yml file for your Travis configuration.

    Example

    language: java
    jdk: oraclejdk8
    install: true # skipping the default Travis install step
    script:
    - mvn test
  4. Push your .travis.yml file on your GitHub repository.

Results

The build is running on Travis CI.

Each time you push to your GitHub repository, a build will be triggered on Travis CI and will run your test scenarios.