Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
48 lines (41 sloc) 1.44 KB
# 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
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# 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 --no-terminal --install-ghc test
# Prepare the upload to S3
- mkdir -p to-travis
- cp $(stack exec which wai-crowd) to-travis
- bzip2 to-travis/wai-crowd
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
# Upload the resulting executable to S3
deploy:
provider: s3
access_key_id: AKIAIAVQAXMLLEPM4I5A
secret_access_key:
secure: "GCse55MSgoBz4vvAH41MiPNe2c3OsjqFslhGgv2c5fakjNXNAFG7rrftoh2/txzB7wle5U4fEU8JJfT/mIRhiEJ8//cOHLGJQZBeC1teiBipD8LfxLItCa32mlGjTwa/STDAW3KDluVamAWIN8CC/7v2SAuiQ/B4dqSL2p2MS40="
bucket: stackage-travis
acl: public_read
skip_cleanup: true
local_dir: to-travis
upload-dir: wai-crowd
on:
repo: fpco/wai-middleware-crowd
branch: master
You can’t perform that action at this time.