Skip to content

Commit

Permalink
Added appveoyr cache
Browse files Browse the repository at this point in the history
Cache:
* cabal/packages
* cabal/store
  • Loading branch information
coot committed Jan 31, 2020
1 parent 1bd41d2 commit b15e76d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ cache:
- $HOME/.cabal/packages
- $HOME/.cabal/store
before_cache:
- rm -fv $CABALHOME/packages/hackage.haskell.org/build-reports.log
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
# remove files that are regenerated by 'cabal update'
- rm -fv $CABALHOME/packages/hackage.haskell.org/00-index.*
- rm -fv $CABALHOME/packages/hackage.haskell.org/*.json
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.cache
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
- rm -rfv $CABALHOME/packages/head.hackage
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.*
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/*.json
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.cache
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar.idx
- rm -rfv $HOME/.cabal/packages/head.hackage
addons:
apt:
update: true
packages:
# ghc requirements
- libgmp-dev
- libffi-dev
- libncurses-dev
- libtinfo5
before-install:
- export CABALHOME=$HOME/.cabal
- export BOOTSTRAP_HASKELL_NONINTERACTIVE="true"
- export PATH="${CABALHOME}/bin:${HOME}/.ghcup/bin:${HOME}/.local/bin:${PATH}"
- export PATH="${HOME}/.cabal/bin:${HOME}/.ghcup/bin:${HOME}/.local/bin:${PATH}"
- mkdir -p $HOME/.local/bin
install:
- curl --proto '=https' -o ghcup.sh --tlsv1.2 -sSf https://get-ghcup.haskell.org
Expand Down
15 changes: 15 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
clone_folder: "c:\\zephyr"
environment:
APPVEYOR_SSH_KEY: "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAs17FMCcqFt4GWaZdXilewWPveDFiS6NXuV5OKyosf6VkJLwu0mghEvxnMBdK4PyeUgalZzPRy8hb9JoGPkiD3SqZ0bOSUSY2NgUdUdbCDzuHdM3Ga/nSs2G/IvpY0c8Cyh1MCdYel4N2kQ3qWYkmBsfEScPXTV4DI/WhaSJzJBdhoz1NfNAZY+p6kmQ+6YIt2yziXFWT6p/JL0er+5KNd60ZE67n3crZ+X2fHNW/eUwL+VNUlSaejwRNAu0wgyvIiC+pdnET9NpvwcPooDU/FM5SkEWD4j1ivBUa0deCa0F5hmpEuok0oa2mac9+BN6gK3GmQ4fDKzrmpz2qsFQ0Cw=="
cache:
- c:\zephyr\dist-newstyle
- c:\Users\appveyor\AppData\Roaming\cabal\packages
- c:\Users\appveyor\AppData\Roaming\cabal\store
init:
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
install:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
Expand Down Expand Up @@ -37,3 +43,12 @@ deploy:
force_update: true
on:
appveyor_repo_tag: true
on_finish:
- rm -fv c:\Users\appveyor\AppData\Roaming\cabal\packages\hackage.haskell.org\build-reports.log || true
# remove files that are regenerated by 'cabal update'
- rm -fv c:\Users\appveyor\AppData\Roaming\cabal\packages\hackage.haskell.org\00-index.* || true
- rm -fv c:\Users\appveyor\AppData\Roaming\cabal\packages\hackage.haskell.org\*.json || true
- rm -fv c:\Users\appveyor\AppData\Roaming\cabal\packages\hackage.haskell.org\01-index.cache || true
- rm -fv c:\Users\appveyor\AppData\Roaming\cabal\packages\hackage.haskell.org\01-index.tar || true
- rm -fv c:\Users\appveyor\AppData\Roaming\cabal\packages\hackage.haskell.org\01-index.tar.idx || true
- rm -rfv c:\Users\appveyor\AppData\Roaming\cabal\packages\head.hackage || true

0 comments on commit b15e76d

Please sign in to comment.