-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
46 lines (37 loc) · 1.62 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
before_deploy:
- stack exec dhall-to-json <<< "./ci/bintray.dhall {date = \"$(date '+%Y-%m-%d')\", tag = \"${TRAVIS_TAG}\", tarFile = \"${TAR_FILE}\"}" > ci/bintray.json
- tar --create --file ${TAR_FILE} --directory bin --gzip purcel
before_install:
- ci/install-stack.sh --os ${TRAVIS_OS_NAME} --verbose
cache:
directories:
- ${HOME}/.local/bin
- .stack-root
- .stack-work
timeout: 1000
deploy:
- file: ci/bintray.json
key:
secure: Qy6PPuxWWhWFGT5Ma8ngmyCovMKKv1uUQRDp1urJKuKfJDmJkeGMqJTWUHfdqHJaepRYIthScLWU0dS5nqe5MWabHcXa1xr01jMYiYptXetYGBHdDYBNojkUKkWr1SEhqaPUgkefHZhTAGBe308jqNFOTBlJRUEhfd6Hb9oFua+B9a9BKAJdSPJMzGRbW3+Ega3uFWrvUQb5ffksbb0zJd8K70hqN9ffPEt1RZp0sSFLAdpO9BLsJlBehq4jUhxfvI/18L6P1tnI7BQDTA3ZnGf0MwX94uy55DaV1V1Ak9Lel32m8whwmM0UsikmemmStWph0T8FTu5leETQm3agWSIFoV3ohJXO4+e1WWUAckbNbGX6JaOFHPi5wf6SGN0Zm9/f8Kr1i+bLiCp48aFjwksR8nx2p0ouTHMN0/YIewcUe39DehVb6UZmFUG5KkjFOciZmtZLYCfkghmNxDj5u3oW4WOe1JMKcLSgoean+lI6U2XRkz4k6+XjAc91h6d2Uz89hygazHRApNKdlSfeNPwF0ZFuSvk+pPh3BrtSG6g9+u+97TTV4fIWrW0KZGMDnhkgfsRu3AQNd3R7uWq2Blh5IdWah6UkvpLH0yCUTYON2+eki/WdYqdDKEWE7JcNPlvCBDtsxcOyK0So1PGAIuaJS6sqdN8lJgfZJrabpTU=
on:
repo: joneshf/purcel
tags: true
provider: bintray
skip_cleanup: true
user: joneshf
env:
global:
- PATH=/usr/local/opt/coreutils/libexec/gnubin:${PATH}
- STACK_ROOT=${TRAVIS_BUILD_DIR}/.stack-root
- TAR_FILE=purcel-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.tar.gz
install:
- stack setup
- stack build dhall-json
language: c
os:
- linux
- osx
sudo: false
script:
- stack build --copy-bins --local-bin-path bin --no-run-tests --test
- stack build --test