Skip to content

Commit 70887c6

Browse files
committed
Create .travis.yml
1 parent c67aaea commit 70887c6

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.travis.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
sudo: false
2+
3+
# Choose a lightweight base image; we provide our own tools.
4+
language: c
5+
6+
cache:
7+
directories:
8+
- $HOME/.ghc
9+
- $HOME/.cabal
10+
- $HOME/.stack
11+
12+
addons:
13+
apt:
14+
packages:
15+
- libgmp-dev
16+
17+
before_install:
18+
- mkdir -p ~/.local/bin
19+
- export PATH=$HOME/.local/bin:$PATH
20+
- curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
21+
22+
23+
install:
24+
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
25+
- stack --no-terminal -j1 --install-ghc build --only-dependencies
26+
27+
script:
28+
- stack --no-terminal -j1 build --flag trypurescript:-dev
29+
30+
notifications:
31+
email: true
32+
33+
before_deploy:
34+
- mkdir bundle
35+
- cp `stack path --dist-dir`/build/trypurescript/trypurescript bundle/
36+
- cp LICENSE bundle/
37+
- tar czf trypurescript.tar.gz -C bundle/ .
38+
39+
deploy:
40+
provider: releases
41+
api_key: $RELEASE_KEY
42+
file: trypurescript.tar.gz
43+
skip_cleanup: true
44+
on:
45+
tags: true

0 commit comments

Comments
 (0)