git.iko.soy/typeable/stackage2nix
on v0.3.0 help sign in
40 lines 1.0 kB history raw
1sudo: required
3language: generic
5addons:
6 apt:
7 packages:
8 - libgmp-dev
10cache:
11 directories:
12 - $HOME/.local/bin
13 - $HOME/.stack
14 - $HOME/.nix
16jobs:
17 include:
18 - stage: test
19 script:
20 - stack --no-terminal --install-ghc build --fast --only-dependencies
21 - stack --no-terminal --install-ghc test --fast --pedantic
22 - stack --no-terminal install
23 - stage: bootstrap
24 script:
25 - nix-env -i nix-prefetch-git
26 - nix-shell -p cabal-install --run 'cabal update'
27 - ./stackage2nix-test --dry-run
29before_install:
30# Download and unpack the stack executable
31- mkdir -p ~/.local/bin
32- export PATH=$HOME/.local/bin:$PATH
33- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
34# Install Nix
35- mkdir -p ~/.nix
36- sudo mkdir -p /nix
37- sudo chmod a+w /nix
38- sudo mount --bind ~/.nix /nix
39- curl https://nixos.org/nix/install | sh
40- source ~/.nix-profile/etc/profile.d/nix.sh