-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
114 lines (106 loc) · 3.12 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
sudo: true
language: c
addons:
apt:
packages:
- libgmp3-dev
- xz-utils
- liblzma-dev
matrix:
include:
- env: TARGET=x86_64-unknown-linux GHC=8.8.1
addons:
apt:
update: true
sources:
- hvr-ghc
packages:
- ghc-8.8.1
- cabal-install-3.0
- env: TARGET=x86_64-unknown-linux GHC=8.6.5
addons:
apt:
update: true
sources:
- hvr-ghc
packages:
- ghc-8.6.5
- cabal-install-3.0
- env: TARGET=x86_64-unknown-linux GHC=8.4.4
addons:
apt:
update: true
sources:
- hvr-ghc
packages:
- ghc-8.4.4
- cabal-install-3.0
# OS X
- env: TARGET=x86_64-apple-darwin GHC=8.8.1
os: osx
before_install:
- |
if [ `uname` = "Darwin" ]
then
brew install xz
brew install cabal-install
brew install wget
cabal update
else
export PATH=/opt/ghc/bin:$PATH
cabal update
fi
script:
- |
wget https://www.libarchive.org/downloads/libarchive-3.4.2.tar.gz
tar xvf libarchive-3.4.2.tar.gz
cd libarchive-3.4.2
./configure
make -j
sudo make install
cd ..
- curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s ats-format ats-pkg dependency hs2ats language-ats shake-ats shake-c shake-cabal
- cabal update
- travis_wait 40 cabal build all
- |
if [ `uname` = "Darwin" ]
then
export BINPATH1="$(find dist-newstyle/ -name atspkg -perm 755 | tail -n1)"
export BINPATH2="$(find dist-newstyle/ -name atsfmt -perm 755 | tail -n1)"
export BINPATH3="$(find dist-newstyle/ -name hs2ats -perm 755 | tail -n1)"
else
export BINPATH1="$(find dist-newstyle/ -name atspkg -executable | tail -n1)"
export BINPATH2="$(find dist-newstyle/ -name atsfmt -executable | tail -n1)"
export BINPATH3="$(find dist-newstyle/ -name hs2ats -executable | tail -n1)"
fi
- echo $BINPATH1
- echo $BINPATH2
- echo $BINPATH3
- mv $BINPATH1 atspkg-$TARGET
- mv $BINPATH2 atsfmt-$TARGET
- mv $BINPATH3 hs2ats-$TARGET
- strip atspkg-$TARGET
- strip atsfmt-$TARGET
- strip hs2ats-$TARGET
- du -h atspkg-$TARGET
- cd ats-pkg/test/data/hello-world
- ../../../../atspkg-$TARGET clean
- ../../../../atspkg-$TARGET nuke
- ../../../../atspkg-$TARGET run -vvv
- cd -
deploy:
api_key:
secure: "IZLQxO3HtTM2nqowxVOY3MhRhGZTElXUn0jpyPBkbrxLzk8Ykac15lSAGOs4MYo/GdKof8YYr2fHGChv7/PkF/HYSLFcDrY0UzpCP8QqANWjKbakQmVqU+YTtas3cq/Gk1l2tY9MGDNfMB7jk92Nh6BsA1TxReyziVPCDJv+z4UYZqQGhBxYQlVqHlcxYpS0p5gmXTFC8+io/ArGzC4jHqaZ+LmrzVMiXdDeQnVIOtQHbwWLwPb6mXBA8W5qC/IAgivb+w9aH86GUgML2t16b2/pCHQANigaeDTAseaU2PUv2fJTqexBfrAH34FJ+TQxROi8JpXu2/SVDuironTOPhUSnVd3aYNd64lOB80UmCxIWxYcYVA7olr6Qth1ZfKI0ks64sXJ7XlLDykCPqSTdnuiCEsqlHll+2ZA2uEHKuwRxMht/ZxKnW6a6GidaRp2cImBe7sMBQyiLYzf6+ZJQyy7H5beV9FsiTAyA4oxEGtl+220i0kwz6CV4+WXeoO7yv4TAKVfIEMjvHANV/kWEztuwcs3kIJzXJd1J/TdAneOHOCKGbnqDSDNeY48upwaPCQOnNA+RK4PYiA0YJ5zoq8hamtaMVzciGWMX3rFux9qC4wjgcTafFwyF3MSuF/TitAZI/xAtCOnCsZspuaBXI1nuoLoF61oixvD9xMeyNo="
file:
- atspkg-$TARGET
- atsfmt-$TARGET
- hs2ats-$TARGET
on:
tags: true
provider: releases
skip_cleanup: true
branches:
only:
- /\d+\.\d+\.\d+\.\d+.*$/
- master