• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

catmaid / CATMAID / 6499
45%
master: 45%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 15 Oct 2019 04:57PM UTC
Jobs 3
Files 210
Run time 14min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6499

Pull #1936

travis-ci

web-flow
Tests: ignore GUI tests on non-mainline repos

This makes it possible to have CI tests being run successfully for other
repos than the main upstream repo. Simply defining the Saucelab
credentials outside of the Travis file and in the general project
configuration (on the website), makes this happen automatically (after a
few adjustments to disable GUI tests without these ad).

Additionally, this makes it possible for repos other than the mainline
repo to enable GUI tests by simply adding the SAUCE_USERNAME and
SAUCE_ACCESS_KEY environment variables through the Travis web interface.

I tried different setups, including build stages:

 language: python
 cache: pip
 stages:
   - name: "Tests"
     if: repo = catmaid/CATMAID
     env:
       - SAUCE_USERNAME: catmaid
       - secure: "rFiPF3KRokQqUaMHzr34wdt98pbYKyO47CFm9sJPO/HOKePhDCW6bMhiNa4x5Q2T5oAb0SRb/6CECExlGtA4mnzC5u47S8E9TidlZZ1m/n2TRZr2cvzhBJFhnYYZxcF8+6vCKq4DWVU+wD2/4wWktIHkcBJ9XMErl8HyICUHzLo="
   - name: "Tests without GUI"
     if: repo != catmaid/CATMAID
 matrix:
   include:
     # Only run GUI tests for the main repo, because credentials for Saucelabs
     # are otherwise not accessible.
     - stage: "Tests"
       python: "3.6"
       addons:
         sauce_connect: true
     - python: "3.7"
       addons:
         sauce_connect: true
     - python: "3.8-dev"
       addons:
         sauce_connect: true
     - python: "pypy3.6-7.1.1"
       addons:
         sauce_connect: true

     # Jobs for builds in non-mainline repo (no access to secure environment
     # variables.)
     - stage: "Tests without GUI"
       python: "3.6"
     - python: "3.7"
     - python: "3.8-dev"
     - python: "pypy3.6-7.1.1"
   allow_failures:
   - python: "3.8-dev"

 addons:
   chrome: stable
   postgresql: 10

This becomes quickly verbose and redundant, because the Travis YAML
format doesn't support configuring addons and secure environment
variables on the stage level. Ultimately, the above solution is simpler
anyway.
Pull Request #1936: Ignore GUI tests when testing for non-mainline repos

16868 of 37900 relevant lines covered (44.51%)

1.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6499.1 15 Oct 2019 04:57PM UTC 0
44.51
Travis Job 6499.1
2 6499.2 15 Oct 2019 04:57PM UTC 0
44.51
Travis Job 6499.2
3 6499.3 15 Oct 2019 05:11PM UTC 0
41.43
Travis Job 6499.3
Source Files on build 6499
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6499
  • Pull Request #1936
  • PR Base - dev (#6453)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc