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

catmaid / CATMAID / 6497
45%
master: 45%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 15 Oct 2019 04:33PM UTC
Jobs 3
Files 210
Run time 13min
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
6497

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, becaue the Travis YAML
format doesn't support configuring addons and secure environment
variables on the stage level. Ultimatel, the above solution is simpler
anyway.

16906 of 37900 relevant lines covered (44.61%)

1.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6497.1 15 Oct 2019 04:33PM UTC 0
44.61
Travis Job 6497.1
2 6497.2 15 Oct 2019 04:33PM UTC 0
44.61
Travis Job 6497.2
3 6497.3 15 Oct 2019 04:46PM UTC 0
41.53
Travis Job 6497.3
Source Files on build 6497
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6497
  • c0c29ba2 on github
  • Prev Build on features/ignore-gui-tests-without-credentials (#6496)
  • Next Build on features/ignore-gui-tests-without-credentials (#6498)
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