diff --git a/.travis.yml b/.travis.yml index f7c3244..852da6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml index 3800cfa..1e13d56 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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% @@ -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