forked from serokell/foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
60 lines (60 loc) · 2.19 KB
/
azure-pipelines.yml
File metadata and controls
60 lines (60 loc) · 2.19 KB
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
jobs:
- job: Formatting
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
cd $HOME
mkdir -p $HOME/.ghcup/bin && curl https://raw.githubusercontent.com/haskell/ghcup/master/ghcup > $HOME/.ghcup/bin/ghcup && chmod +x $HOME/.ghcup/bin/ghcup
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
ghcup install 8.6.5
ghcup set 8.6.5
ghcup install-cabal
cabal v2-update
cabal v2-install ormolu
displayName: 'Install ormolu'
- script: |
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
FILES=$(find lib src -name "*.hs")
echo "Checking files:"
echo $FILES
ormolu -c --mode check $FILES
displayName: 'Check formatting'
- job: Ubuntu
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
sudo apt-get install libgtk-3-dev
mkdir -p $HOME/.ghcup/bin && curl https://raw.githubusercontent.com/haskell/ghcup/master/ghcup > $HOME/.ghcup/bin/ghcup && chmod +x $HOME/.ghcup/bin/ghcup
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
ghcup install 8.6.5
ghcup set 8.6.5
ghcup install-cabal
cabal v2-update
displayName: 'Prepare system'
- script: |
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
cabal v2-build
cabal v2-exec -- which foundry hask
displayName: 'Build'
- job: macOS
pool:
vmImage: 'macOS-10.14'
steps:
- script: |
brew install gtk+3 libffi pkgconfig
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig:$PKG_CONFIG_PATH
mkdir -p $HOME/.ghcup/bin && curl https://raw.githubusercontent.com/haskell/ghcup/master/ghcup > $HOME/.ghcup/bin/ghcup && chmod +x $HOME/.ghcup/bin/ghcup
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
ghcup install 8.6.5
ghcup set 8.6.5
ghcup install-cabal
cabal v2-update
displayName: 'Prepare system'
- script: |
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"
export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig:$PKG_CONFIG_PATH
cabal v2-build
cabal v2-exec -- which foundry hask
displayName: 'Build'