My project can be compiled on travis Linux , but MacOS
Traviss-Mac:src travis$ stack build
common > configure (lib)
Progress 1/3
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the error:
*emphasized text*
/Users/travis/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_6HauvNHV_3.2.1.0_ghc-8.10.3: startProcess: exec: invalid argument (Bad file descriptor)
Traviss-Mac:src travis$
here mine travis.yml:
# This is the simple Travis configuration, which is intended for use
# on applications which do not require cross-platform and
# multiple-GHC-version support. For more information and other
# options, see:
#
# https://docs.haskellstack.org/en/stable/travis_ci/
#
# Copy these contents into the root directory of your Github project in a file
# named .travis.yml
# Choose a build environment
dist: xenial
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
- $TRAVIS_BUILD_DIR/.stack-work
jobs:
include:
- env: BUILD=stack ARGS="--resolver lts-17" SCRYPTC=/home/travis/.local/bin/scrypt
compiler: ": #stack 8.10.3"
addons: {apt: {packages: [ghc-8.10.3, libgmp-dev], sources: [hvr-ghc]}}
- env: BUILD=stack ARGS="--resolver lts-17" SCRYPTC=/home/travis/.local/bin/scrypt
compiler: ": #stack 8.10.3 osx"
os: osx
osx_image: xcode14
# Installing Stack
# Currently there is only one reasonable way to install Stack: fetch precompiled binary from the GitHub.
before_install:
# Using compiler above sets CC to an invalid value, so unset it
- unset CC
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- |
if [ `uname` = "Darwin" ]
then
travis_retry curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
else
travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
fi
- stack config set system-ghc --global true
- export PATH=/opt/ghc/8.10.3/bin:$PATH
# z3 is needed by SBV
# - pip install z3-solver
script:
# Build dependencies
- stack --version
- cd src/
- stack --no-terminal --skip-ghc-check test
- |
if [ `uname` = "Linux" ]; then
../util/runtests.sh
fi