51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
os:
|
|
- linux
|
|
- osx
|
|
|
|
language: nix
|
|
|
|
sudo: required
|
|
|
|
git:
|
|
depth: 4 # NOTE: "The use of clone depth: 1 often results in a git error
|
|
# when a new commit has been pushed to a branch before the CI
|
|
# platform started cloning the intended commit."
|
|
|
|
env:
|
|
global:
|
|
- ALL_TESTS=yes
|
|
- secure: "dm6I+M4+V+C7QMTpcSADdKPE633SvmToXZrTbZ7miNDGmMN+/SfHeN2ybi1+PW6oViMlbPN/7J/aEfiGjSJI8vLk72Y4uCWGmpSb8TXZLu6+whnxtZzzW8+z4tsM4048QJg7CF3N/25U8thRFgs3DqUub1Sf3nG9LrNWdz6ZcDQ="
|
|
|
|
matrix:
|
|
- GHCVERSION=ghc865 STRICT=false TRACING=false
|
|
# - GHCVERSION=ghcjs
|
|
#
|
|
# matrix:
|
|
# allow_failures:
|
|
# - env: GHCVERSION=ghcjs
|
|
|
|
before_script:
|
|
- sudo mount -o remount,exec,size=4G,mode=755 /run/user || true
|
|
- sudo mkdir -p /etc/nix
|
|
- echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf
|
|
- sudo launchctl kickstart -k system/org.nixos.nix-daemon || true
|
|
|
|
script:
|
|
- nix-env -iA cachix -f https://github.com/NixOS/nixpkgs/tarball/db557aab7b690f5e0e3348459f2e4dc8fd0d9298
|
|
- cachix use hnix
|
|
- if [ ! "$CACHIX_SIGNING_KEY" = "" ]; then cachix push hnix --watch-store& fi
|
|
- if [ ! "$CACHIX_SIGNING_KEY" = "" ]; then ./build.sh | cachix push hnix; else ./build.sh; fi
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- pending
|
|
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/b0312b18473340459d3e
|
|
on_success: change
|
|
on_failure: always
|
|
on_start: never
|