Skip to main content Skip to complementary content

Running your scenarios on Travis CI

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
    Information noteNote: Talend Cloud API Tester has a GitHub integration to help you push your test files to GitHub.
  2. Go to your profile page on the Travis CI website, find your GitHub repository, and switch it on.
    The repository "your-name/StarWarsApiTests" is enabled.
  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.

The build 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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!