Skip to content

Commit

Permalink
Added appveyor.yml file, updated .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed May 27, 2018
1 parent c9824cb commit bda11a8
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 7 deletions.
23 changes: 17 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Use new container infrastructure to enable caching
sudo: false

# Do not choose a language; we provide our own build tools.
language: generic
language: node_js
node_js:
- "7"

# Caching so the next build will be fast too.
cache:
Expand All @@ -14,19 +14,30 @@ cache:
# Ensure necessary system libraries are present
addons:
apt:
update: true
packages:
- libgmp-dev

before_install:
# Download and unpack the stack executable
- export PATH=$HOME/.local/bin:$HOME/.nix-profile/bin:$PATH
- 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'

install:
# Build dependencies
- stack --no-terminal --install-ghc test --only-dependencies
- npm install -g bower
- stack --no-nix --no-terminal --jobs 1 test --only-dependencies

script:
# Build the package, its tests, and its docs and run the tests
- stack --no-terminal test --haddock --no-haddock-deps
- stack --no-nix --no-terminal --jobs 1 test --haddock --no-haddock-deps --ta="-m dceExpr -m dceEval -m TestLib"

deploy:
provider: releases
api_key:
secure: QM+JDu6JudQs6ROEZvt3wYNQXosKLKQlgV/tbXHTSEJYKkqenJdBTPiZ4mOtNNaXyID0ienAcnlwHIsd7O/lINNYdsARDRABg7udv/v9lw7vs/bsWKIVKucuwDajUm6L6lG5YGJvoyqUaGs8Y8fRNimYwcG1jRZLMEjOhBuQZomW1N33b8LG5xV4EXOScWNRFaR9Mrp2/FSlzLTL+3T3eJLQABDO9qkuRQayMxA23VweLZw51nfaq1ZWsN682UhDKID3RaMzfoXbHqonSxbk28bDwQ3s3xGP97YY9EV+7NQFbOJ3mZNRvTEG1Ar4FK1JOt0PYRlPYbjCTXpPaAjB5e1fsUPCORvoPthJg2dso5qq668TTj1TOs1Gt7ftmtE6ZOVSnP8Oy9BMpoNSWyAilvBn6aUU2P2sqgyT5n6QhHI7JV/Z3ygtC5ve3kej8qkIvBDeDNWUHeaC8i+Kr+qOpwkJAo08zsVgu/mKpueIa3Fbm4oJR5kMVxfFfFwWJZC2Iyx6PIrsu55VpKtGwBVsfRJJbnTAFzuDl4UhJdIb15NZMj3T8jDr5KrQg3pUw/iAukJTdOb98f3+HF8DgX3H4h/drmIBS2JACEpY7h982sjoU4OgKs/8Qy9ww4lzd01ouZuYJ8v9PGMxLquvRvWtqVpXJEoIZtSNIRJwBQjBZH8=
file: "${stack --no-nix path --local-install-root}/bin/zephyr"
skip_cleanup: true
on:
tags: true
38 changes: 38 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Disabled cache in hope of improving reliability of AppVeyor builds
#cache:
#- "c:\\sr" # stack root, short paths == fewer problems

build: off

environment:
global:
STACK_ROOT: "c:\\sr"
nodejs_version: "8"

clone_folder: "c:\\zephyr"

install:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- curl -sS -ostack.zip -L --insecure https://get.haskellstack.org/stable/windows-i386.zip
- 7z x stack.zip stack.exe
- ps: Install-Product node $env:nodejs_version
- npm install -g bower
- set PATH=%AppData%\npm;%PATH%

test_script:
- stack setup > nul
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor.
- echo "" | stack --no-nix --no-terminal --jobs 1 build --copy-bins --test --haddock --no-haddock-deps --ta="-m dceExpr -m dceEval"

deploy:
provider: GitHub
auth_token:
secure: gHIxz3scq98LOgduo20IiKNFcLOmcKHHKH0qI4/z4TawrmbR+MV/rb1mG9GCXf7M
artifact: $(AppData)\local\bin\zephyr
draft: false
prerelease: false
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
flags: {}
extra-package-dbs: []
nix:
enable: true
enable: false
shell-file: shell.nix
packages:
- .
Expand Down

0 comments on commit bda11a8

Please sign in to comment.