mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
8b67a1b26f
I noticed while fixing issue #2702 that the fish program being tested was sourcing config.fish files outside of the current build. This also happens when Travis CI runs the tests but isn't an issue there because of how Travis is configured to execute the tests. I also noticed that running `make test` was polluting my personal fish history; which will become a bigger problem if and when the fishd universal var file is moved from $XDG_CONFIG_HOME to $XDG_DATA_HOME. This change makes it possible for an individual to run the tests on their local machine secure in the knowledge that only the config.fish and related files from their git repository will be used and doing so won't pollute their personal fish history. Resolves #469
67 lines
2.0 KiB
YAML
67 lines
2.0 KiB
YAML
language: cpp
|
|
sudo: false
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
compiler: gcc
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- bc
|
|
- expect
|
|
- gettext
|
|
- libncurses5-dev
|
|
|
|
- os: linux
|
|
compiler: clang
|
|
addons:
|
|
apt:
|
|
sources:
|
|
# stick with 3.6; the 3.7 Debian binaries do not support ASan yet
|
|
# https://llvm.org/bugs/show_bug.cgi?id=22757
|
|
- llvm-toolchain-precise-3.6
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- clang-3.6
|
|
- llvm-3.6 # for llvm-symbolizer
|
|
- bc
|
|
- expect
|
|
- gettext
|
|
- libncurses5-dev
|
|
env:
|
|
- CXXFLAGS="-g -fno-omit-frame-pointer -fsanitize=address"
|
|
- ASAN_SYMBOLIZER_PATH="/usr/bin/llvm-symbolizer-3.6"
|
|
- ASAN_OPTIONS=check_initialization_order=1:detect_stack_use_after_return=1:detect_leaks=0
|
|
before_install: export CXX=clang++-3.6
|
|
|
|
- os: osx
|
|
before_install:
|
|
- brew update
|
|
- brew install pcre2 # use system PCRE2
|
|
|
|
fast_finish: true
|
|
|
|
script:
|
|
- autoreconf
|
|
- ./configure --prefix=$HOME/prefix || cat config.log
|
|
- make -j2
|
|
- make install
|
|
- make test DESTDIR=$HOME/prefix/ SHOW_INTERACTIVE_LOG=1
|
|
|
|
notifications:
|
|
# Some items are encrypted so that notifications from other repositories
|
|
# don't flood the official repositories.
|
|
irc:
|
|
channels:
|
|
#- "irc.oftc.net#fish"
|
|
secure: "eRk9KGZ5+mrlD2SoI8yg2Sp8OYrh7YPyGe3WCDQUwTnNgNDII34rbM9a6UOA/l7AeWSNY8joLq5xVLCU4wpFgUcJ11SYIpMnLosZK29OW4ubDOHmdBDvJ971rLgAVG9cXngZtIxEVVxN/jnS1Qr8GKZx4DjkaTMgz1pemb4WxCc="
|
|
template:
|
|
- "%{repository}#%{build_number} (%{commit} on %{branch} by %{author}): %{message} Details at %{build_url}"
|
|
use_notice: true
|
|
skip_join: true
|
|
webhooks:
|
|
urls:
|
|
#- https://webhooks.gitter.im/e/61821cec3015bf0f8bb1
|
|
secure: fPfOmxnC3MCsfR1oocVFeWLawGcRZkn+8fNHlSOeZ+SqqoZfcCHgQTvQ22TqmVl1yvkXbNlaXjo6dbVzTOAh7r7H0bRMEKBVh3dQS7wqjB1sKivpXd8PAS3BTj5MQpGeJzdHnDuwVlwDktGtfHfhGeq1Go/4IosOq8u+6RTe28g=
|