Previously working build failing with "Services are not supported on osx"

A previously working Travis job which runs some Rust builds/tests on OS X has started failing with:

-e:1:in `read': No such file or directory @ rb_sysopen - /Users/travis/.m2/settings.xml (Errno::ENOENT)
	from -e:1:in `<main>'
mv: rename settings.xml to /Users/travis/.m2/settings.xml: No such file or directory
Services are not supported on osx

Link to failed job: https://travis-ci.com/davechallis/ocypod/jobs/211773421

Travis CI file being used:

sudo: false
language: rust
cache: cargo

os:
    - linux
    - osx

rust:
    - stable
    - beta
    - nightly

matrix:
  allow_failures:
    - rust: nightly
  fast_finish: true

services:
  - redis-server

addons:
  homebrew:
    packages: redis
  
script:
  - cargo build --verbose --all
  - cargo test --verbose --all -- --test-threads=1

Any ideas/suggestions?

Are you saying that these are not test failures? https://travis-ci.com/davechallis/ocypod/jobs/211773421#L926

I see the error message (which is not generated by the “services” functionality) and it should not be generated, but I am highly doubtful that it has anything to do with your failures.

Those are all tests that rely on a redis sever running locally, all the failures indicate that they couldn’t connect to redis on localhost.

This lead me to believe that the error message:

Services are not supported on osx

was indicating that the service definition in my .travis.yml:

services:
  - redis-server

was no longer working.

Edit: although maybe it’s related to:

addons:
  homebrew:
    packages: redis

Ah, I see.

https://travis-ci.com/davechallis/ocypod/jobs/211773421#L133

This is a duplicate of XCode 8.3 Homebrew outdated error.

1 Like

Ah, great, thanks, that makes sense.