From e8722759ab4b5c6d5abf418453b6ab7de8da5a1a Mon Sep 17 00:00:00 2001 From: Roy Levien Date: Thu, 19 Nov 2015 13:05:59 -0500 Subject: [PATCH] Reverting Travis CI to manual build No support for 7.10 yet, it seems. --- .travis.yml | 96 ++++++++++++++++++++++++----------------------------- 1 file changed, 43 insertions(+), 53 deletions(-) diff --git a/.travis.yml b/.travis.yml index 69a40ca..98d067b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,57 +1,47 @@ -language: haskell +# Use new container infrastructure to enable caching +sudo: false -ghc: "7.10" +# Choose a lightweight base image; we provide our own build tools. +language: c -#install: -# - "cabal install --only-dependencies --enable-tests --reorder-goals" -#script: -# - "cabal configure --enable-tests --enable-library-coverage && cabal build && cabal test" +# GHC depends on GMP. You can add other dependencies here as well. +addons: + apt: + packages: + - libgmp-dev +# The different configurations we want to test. You could also do things like +# change flags or use --stack-yaml to point to a different file. +env: +- ARGS="--resolver lts-3.7" +- ARGS="--resolver nightly" +#- ARGS="" -## Use new container infrastructure to enable caching -#sudo: false -# -## Choose a lightweight base image; we provide our own build tools. -#language: c -# -## GHC depends on GMP. You can add other dependencies here as well. -#addons: -# apt: -# packages: -# - libgmp-dev -# -## The different configurations we want to test. You could also do things like -## change flags or use --stack-yaml to point to a different file. -#env: -#- ARGS="--resolver lts-3.7" -#- ARGS="--resolver nightly" -##- ARGS="" -# -#before_install: -## Download and unpack the stack executable -#- mkdir -p ~/.local/bin -#- export PATH=$HOME/.local/bin:$PATH -#- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz | tar xz -C ~/.local/bin -# -## This line does all of the work: installs GHC if necessary, build the library, -## executables, and test suites, and runs the test suites. --no-terminal works -## around some quirks in Travis's terminal implementation. -#script: stack $ARGS --no-terminal --install-ghc test --haddock -# -## Caching so the next build will be fast too. -#cache: -# directories: -# - "$HOME/.stack" -# -### Deploy (tagged commits) to Hackage; generated by travis CLI -##before_deploy: "echo '=== BEGIN deployment ==='" -##deploy: -## provider: hackage -## username: Orome -## password: -## secure: lJTICRAD8m+NePYSnyol1TU1zAyuv9YUmR1mfqE5qTrJnauERarmMEVJXglQUASyAT+JfLSoRqJfQWcixE1YTmcXrijIxZicX7G/t6FqPrJDiz+7lpCg4sXBa4ZAbahwvprkBB1eJUN+/9MUjEeX8a+N/lT/hTvnoAFiM2SW1tfS9YuYTeKYCBNMgh6Li8X4cwvI0nsyWyDj7Q+2n1rti6yBSSt2NdXpxVUGzmn4TiDjbX6B3VNZSlwhMb7h9nw11Yf6UkbjI5r4G8eUAJ5o+YOpVGK41+2IXITrO6YnR7Ma3EmMiOADuG1KkJEUrc9juWy6RmjFO+Zs2YIHiYPKoLZXR1w1pRuSlre3vLJwMKj3nFF2aAgawzjqGpmtJlJLn1D+uIrMnUo5lNb4VNHDNTnlmnQAESZmK/lhhqOp/2CebVp0e2p2bjnJUHKVb3ptXmzek9ppS6T9fBhu9/am/4N3Yi1EUurlxVl0xE1eL/3zQX7vVwPrrjk6kDHgVqrlRDZWvf4/MBgyRUitE12w1oRr04cgcivtv2ipov30EdQoUpMy3ABq8EMITAFXTeNPWtEL+3XUqp9SQfxxnycK1Zm/xAsNgIDQl27xY+XYgF585A+cAkhjXkOhS2h7vDw7z2CXDpXcw46IcyoXiPI+9doLX9rTJF8rzJLVksGbPrE= -## on: -## repo: orome/crypto-enigma-hs -## branch: hackage -## tags: true -##after_deploy: "echo '=== END deployment ==='" +before_install: +# Download and unpack the stack executable +- mkdir -p ~/.local/bin +- export PATH=$HOME/.local/bin:$PATH +- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz | tar xz -C ~/.local/bin + +# This line does all of the work: installs GHC if necessary, build the library, +# executables, and test suites, and runs the test suites. --no-terminal works +# around some quirks in Travis's terminal implementation. +script: stack $ARGS --no-terminal --install-ghc test --haddock + +# Caching so the next build will be fast too. +cache: + directories: + - "$HOME/.stack" + +## Deploy (tagged commits) to Hackage; generated by travis CLI +#before_deploy: "echo '=== BEGIN deployment ==='" +#deploy: +# provider: hackage +# username: Orome +# password: +# secure: lJTICRAD8m+NePYSnyol1TU1zAyuv9YUmR1mfqE5qTrJnauERarmMEVJXglQUASyAT+JfLSoRqJfQWcixE1YTmcXrijIxZicX7G/t6FqPrJDiz+7lpCg4sXBa4ZAbahwvprkBB1eJUN+/9MUjEeX8a+N/lT/hTvnoAFiM2SW1tfS9YuYTeKYCBNMgh6Li8X4cwvI0nsyWyDj7Q+2n1rti6yBSSt2NdXpxVUGzmn4TiDjbX6B3VNZSlwhMb7h9nw11Yf6UkbjI5r4G8eUAJ5o+YOpVGK41+2IXITrO6YnR7Ma3EmMiOADuG1KkJEUrc9juWy6RmjFO+Zs2YIHiYPKoLZXR1w1pRuSlre3vLJwMKj3nFF2aAgawzjqGpmtJlJLn1D+uIrMnUo5lNb4VNHDNTnlmnQAESZmK/lhhqOp/2CebVp0e2p2bjnJUHKVb3ptXmzek9ppS6T9fBhu9/am/4N3Yi1EUurlxVl0xE1eL/3zQX7vVwPrrjk6kDHgVqrlRDZWvf4/MBgyRUitE12w1oRr04cgcivtv2ipov30EdQoUpMy3ABq8EMITAFXTeNPWtEL+3XUqp9SQfxxnycK1Zm/xAsNgIDQl27xY+XYgF585A+cAkhjXkOhS2h7vDw7z2CXDpXcw46IcyoXiPI+9doLX9rTJF8rzJLVksGbPrE= +# on: +# repo: orome/crypto-enigma-hs +# branch: hackage +# tags: true +#after_deploy: "echo '=== END deployment ==='"