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

catmaid / CATMAID / 6498 / 3
45%
master: 45%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 15 Oct 2019 04:59PM UTC
Files 105
Run time 10s
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

15 Oct 2019 04:37PM UTC coverage: 41.534% (-3.1%) from 44.607%
6498.3

push

travis-ci

tomka
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.

7710 of 18563 relevant lines covered (41.53%)

0.42 hits per line

Source Files on job 6498.3
  • Tree
  • List 0
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5721
  • Travis Job 6498.3
  • 8cdd9dcb on github
  • Prev Job for on features/ignore-gui-tests-without-credentials (#6497.1)
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