Skip to content

Commit

Permalink
travis-ci: remount only on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Jun 16, 2016
1 parent 398837f commit 5b7c6a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions maintainers/scripts/travis-nox-review-pr.sh
Expand Up @@ -13,10 +13,6 @@ if [[ $1 == nix ]]; then
sudo mkdir /etc/nix
sudo sh -c 'echo "build-max-jobs = 4" > /etc/nix/nix.conf'

# Nix builds in /tmp and we need exec support
sudo mount
sudo mount -o remount,exec /run

# Verify evaluation
echo "=== Verifying that nixpkgs evaluates..."
nix-env -f. -qa --json >/dev/null
Expand All @@ -30,6 +26,11 @@ elif [[ $1 == build ]]; then
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
echo "Skipping NixOS things on darwin"
else
# Nix builds in /tmp and we need exec support
sudo mount -o remount,exec /run
sudo mount -o remount,exec /run/user
sudo mount

echo "=== Checking NixOS options"
nix-build nixos/release.nix -A options --show-trace

Expand Down

0 comments on commit 5b7c6a1

Please sign in to comment.