Skip to content

Commit

Permalink
Try to fix nix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
klntsky committed Aug 22, 2019
1 parent e47e5f8 commit 5da4190
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ git:
branches:
only:
- master
- /^\d+\.\d+\.\d+(\.\d+)?$/

cache:
directories:
- "$HOME/.cabal/store"
- "$HOME/.stack"
- "$TRAVIS_BUILD_DIR/.stack-work"
- /^v\d+\.\d+\.\d+(\.\d+)?$/

matrix:
include:
- ghc: 8.6.4
env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
language: haskell

cache:
directories:
- "$HOME/.cabal/store"
- "$HOME/.stack"
- "$TRAVIS_BUILD_DIR/.stack-work"

install:
- |
curl -sSL https://get.haskellstack.org/ | sh
Expand All @@ -38,15 +38,15 @@ matrix:
- |
echo "Running before_deploy"
stack build --system-ghc --copy-bins --local-bin-path ./artifacts"
stack build --system-ghc --copy-bins --local-bin-path ./artifacts
cp artifacts/dzen-dhall dzen-dhall
tar -zcvf "${TRAVIS_OS_NAME}.tar.gz" dzen-dhall
deploy:
- provider: releases
api_key: $API_KEY
file:
- ../$TRAVIS_OS_NAME.tar.gz
- ./$TRAVIS_OS_NAME.tar.gz
skip_cleanup: true
on:
tags: true
Expand All @@ -57,6 +57,7 @@ matrix:

before_install:
- sudo mkdir -p /etc/nix
- sudo touch /etc/nix/nix.conf
- echo "substituters = https://cache.nixos.org/ file://$HOME/nix.store" | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo 'require-sigs = false' | sudo tee -a /etc/nix/nix.conf > /dev/null

Expand Down

0 comments on commit 5da4190

Please sign in to comment.