forked from TuringLang/Turing.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
73 lines (63 loc) · 2.35 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
jobs:
- job: Linux
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
Julia 1.1:
JULIA_VERSION: '1.1.1'
steps:
- script: |
wget -nv https://julialang-s3.julialang.org/bin/linux/x64/1.1/julia-$(JULIA_VERSION)-linux-x86_64.tar.gz
tar zxf julia-$(JULIA_VERSION)-linux-x86_64.tar.gz
displayName: 'Install Julia'
- script: |
./julia-$(JULIA_VERSION)/bin/julia --project=@. -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("Turing")'
displayName: 'Run the tests'
- job: macOS
pool:
vmImage: 'macOS-10.13'
strategy:
matrix:
Julia 1.1:
JULIA_VERSION: '1.1.1'
JULIA_VERSION_SHORT: '1.1'
steps:
- script: |
wget -nv https://julialang-s3.julialang.org/bin/mac/x64/1.1/julia-$(JULIA_VERSION)-mac64.dmg
hdiutil attach julia-$(JULIA_VERSION)-mac64.dmg
ln -s /Volumes/Julia-$(JULIA_VERSION)/Julia-$(JULIA_VERSION_SHORT).app/Contents/Resources/julia/bin/julia
displayName: 'Install Julia'
- script: |
./julia --project=@. -e 'using InteractiveUtils;versioninfo()'
./julia --project=@. -e 'using Pkg; Pkg.instantiate()'
./julia --project=@. -e 'using Pkg; Pkg.test("Turing")'
displayName: 'Run the tests'
- job: Windows
timeoutInMinutes: 360
pool:
vmImage: 'VS2017-Win2016'
strategy:
matrix:
Julia 1.1 (W32):
ARCH: x86
JULIA_VERSION: '1.1.1-win32'
Julia 1.1 (W64):
ARCH: x64
JULIA_VERSION: '1.1.1-win64'
steps:
- powershell: |
wget https://julialang-s3.julialang.org/bin/winnt/$(ARCH)/1.1/julia-$(JULIA_VERSION).exe -OutFile julia-$(JULIA_VERSION).exe
Start-Process -FilePath .\julia-$(JULIA_VERSION).exe -ArgumentList "/S /D=C:\julia" -NoNewWindow -Wait
displayName: 'Install Julia'
- powershell: |
C:\julia\bin\julia --project=@. -e 'using InteractiveUtils;versioninfo()'
C:\julia\bin\julia --project=@. -e 'using Pkg; Pkg.instantiate()'
C:\julia\bin\julia --project=@. -e 'using Pkg; Pkg.test(\"Turing\")'
displayName: 'Run the tests'