mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
23 lines
917 B
YAML
23 lines
917 B
YAML
language: nix
|
|
matrix:
|
|
include:
|
|
- name: 18.09 macOS
|
|
env: CHANNEL=nixpkgs-18.09-darwin
|
|
os: osx
|
|
- name: NixOS 18.09
|
|
env: CHANNEL=nixos-18.09
|
|
- name: NixOS Unstable
|
|
env: CHANNEL=nixos-unstable
|
|
|
|
sudo: required
|
|
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 -if https://github.com/cachix/cachix/tarball/master --extra-substituters https://cachix.cachix.org --trusted-public-keys 'cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM='
|
|
- cachix use nix-tools
|
|
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/${CHANNEL}.tar.gz NIX_BUILD_ARGS="--cores 0 --max-jobs 2" ./test/tests.sh
|