forked from blallen/CLIMA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
107 lines (90 loc) · 3.26 KB
/
azure-pipelines.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
trigger:
batch: true
branches:
include:
- staging
- trying
jobs:
- job: Linux
timeoutInMinutes: 0
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
Julia 1.3:
JULIA_VERSION: '1.3'
steps:
- bash: |
set -o xtrace
wget -nv https://julialang-s3.julialang.org/bin/linux/x64/$(JULIA_VERSION)/julia-$(JULIA_VERSION)-latest-linux-x86_64.tar.gz
mkdir julia-$(JULIA_VERSION)
tar zxf julia-$(JULIA_VERSION)-latest-linux-x86_64.tar.gz -C julia-$(JULIA_VERSION) --strip-components 1
displayName: 'Download and extract Julia'
- bash: |
set -o xtrace
sudo apt-get update
sudo apt-get install mpich libmpich-dev
displayName: 'Install dependencies'
- bash: |
set -o xtrace
./julia-$(JULIA_VERSION)/bin/julia -e 'using InteractiveUtils; versioninfo()'
./julia-$(JULIA_VERSION)/bin/julia --project=@. -e 'using Pkg; Pkg.instantiate()'
./julia-$(JULIA_VERSION)/bin/julia --project=@. -e 'using Pkg; Pkg.test()'
displayName: 'Run the tests'
continueOnError: true
- job: macOS
timeoutInMinutes: 0
pool:
vmImage: 'macOS-10.14'
strategy:
matrix:
Julia 1.3:
JULIA_VERSION: '1.3'
steps:
- bash: |
set -o xtrace
wget -nv https://julialang-s3.julialang.org/bin/mac/x64/$(JULIA_VERSION)/julia-$(JULIA_VERSION)-latest-mac64.dmg
mkdir juliamnt
hdiutil mount -readonly -mountpoint juliamnt julia-$(JULIA_VERSION)-latest-mac64.dmg
cp -a juliamnt/*.app/Contents/Resources/julia julia-$(JULIA_VERSION)
displayName: 'Download and extract Julia'
- bash: |
set -o xtrace
brew update
brew upgrade
brew install mpich
displayName: 'Install dependencies'
- bash: |
set -o xtrace
./julia-$(JULIA_VERSION)/bin/julia -e 'using InteractiveUtils; versioninfo()'
./julia-$(JULIA_VERSION)/bin/julia --project=@. -e 'using Pkg; Pkg.instantiate()'
./julia-$(JULIA_VERSION)/bin/julia --project=@. -e 'using Pkg; Pkg.test()'
env:
MPICH_INTERFACE_HOSTNAME: localhost
displayName: 'Run the tests'
- job: Windows
timeoutInMinutes: 0
pool:
vmImage: 'VS2017-Win2016'
strategy:
matrix:
Julia 1.3:
JULIA_VERSION: '1.3'
continueOnError: true
steps:
- powershell: |
Set-PSDebug -Trace 1
wget https://julialang-s3.julialang.org/bin/winnt/x64/$(JULIA_VERSION)/julia-$(JULIA_VERSION)-latest-win64.exe -OutFile julia-$(JULIA_VERSION)-latest-win64.exe
Start-Process -FilePath .\julia-$(JULIA_VERSION)-latest-win64.exe -ArgumentList "/S /D=C:\julia-$(JULIA_VERSION)" -NoNewWindow -Wait
displayName: 'Download and extract Julia'
- powershell: |
Set-PSDebug -Trace 1
wget https://download.microsoft.com/download/a/5/2/a5207ca5-1203-491a-8fb8-906fd68ae623/msmpisetup.exe -OutFile msmpisetup.exe
Start-Process -FilePath .\msmpisetup.exe "-unattend -minimal"
displayName: 'Install dependencies'
- powershell: |
Set-PSDebug -Trace 1
C:\julia-$(JULIA_VERSION)\bin\julia.exe -e 'using InteractiveUtils; versioninfo()'
C:\julia-$(JULIA_VERSION)\bin\julia.exe --project=@. -e 'using Pkg; Pkg.instantiate()'
C:\julia-$(JULIA_VERSION)\bin\julia.exe --project=@. -e 'using Pkg; Pkg.test()'
displayName: 'Run the tests'