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

catmaid / CATMAID / 6499 / 1
45%
master: 45%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 15 Oct 2019 04:57PM UTC
Files 105
Run time 8s
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:46PM UTC coverage: 44.507% (-0.1%) from 44.607%
6499.1

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

8434 of 18950 relevant lines covered (44.51%)

0.45 hits per line

Source Files on job 6499.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5722
  • Travis Job 6499.1
  • 5dee93b1 on github
  • Prev Job for on features/ignore-gui-tests-without-credentials (#6453.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