Skip to content

Commit 8969f6c

Browse files
authored
Try to be smart about the version number (#37)
* Try to be smart about the version number * Install the package * Add project file * Add Windows CI * Add macOS CI
1 parent 24adca2 commit 8969f6c

File tree

3 files changed

+71
-10
lines changed

3 files changed

+71
-10
lines changed

Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name = "GenericLinearAlgebra"
2+
uuid = "14197337-ba66-59df-a3e3-ca00e7dcff7a"
3+
4+
[deps]
5+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
6+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
7+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GenericLinearAlgebra.jl
2-
<!-- [![StatsBase](http://pkg.julialang.org/badges/StatsBase_0.4.svg)](http://pkg.julialang.org/?pkg=StatsBase&ver=0.4) -->
32
[![Build Status](https://travis-ci.org/andreasnoack/GenericLinearAlgebra.jl.svg?branch=master)](https://travis-ci.org/andreasnoack/GenericLinearAlgebra.jl)
3+
[![Build Status](https://dev.azure.com/andreasnoack/GenericLinearAlgebra/_apis/build/status/andreasnoack.GenericLinearAlgebra.jl?branchName=master)](https://dev.azure.com/andreasnoack/GenericLinearAlgebra/_build/latest?definitionId=2)
44
[![Coverage Status](https://coveralls.io/repos/github/andreasnoack/GenericLinearAlgebra.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/andreasnoack/GenericLinearAlgebra.jl?branch=master)
55

66
### A fresh approach to numerical linear algebra in Julia

azure-pipelines.yml

Lines changed: 63 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,68 @@
33
# Add steps that build, run tests, deploy, and more:
44
# https://aka.ms/yaml
55

6-
pool:
7-
vmImage: 'Ubuntu 16.04'
6+
jobs:
7+
- job: Linux
8+
9+
pool:
10+
vmImage: 'Ubuntu 16.04'
811

9-
steps:
10-
- script: |
11-
wget -nv https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.1-linux-x86_64.tar.gz
12-
tar zxf julia-1.0.1-linux-x86_64.tar.gz
13-
displayName: 'Download and extract Julia 1.0'
12+
strategy:
13+
matrix:
14+
Julia 1.0:
15+
JULIA_VERSION: '1.0.1'
1416

15-
- script: ./julia-1.0.0/bin/julia -e 'using Pkg; Pkg.resolve(); Pkg.test()'
16-
displayName: 'Run the tests'
17+
steps:
18+
- script: |
19+
wget -nv https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-$(JULIA_VERSION)-linux-x86_64.tar.gz
20+
tar zxf julia-$(JULIA_VERSION)-linux-x86_64.tar.gz
21+
displayName: 'Download and extract Julia 1.0'
22+
23+
- script: |
24+
./julia-$(JULIA_VERSION)/bin/julia --project=@. -e 'using Pkg; Pkg.instantiate()'
25+
./julia-$(JULIA_VERSION)/bin/julia --project=@. -e 'using Pkg; Pkg.test("GenericLinearAlgebra")'
26+
displayName: 'Run the tests'
27+
28+
- job: macOS
29+
30+
pool:
31+
vmImage: 'macOS-10.13'
32+
33+
strategy:
34+
matrix:
35+
Julia 1.0:
36+
JULIA_VERSION: '1.0.1'
37+
JULIA_VERSION_SHORT: '1.0'
38+
39+
steps:
40+
- script: |
41+
wget -nv https://julialang-s3.julialang.org/bin/mac/x64/1.0/julia-$(JULIA_VERSION)-mac64.dmg
42+
hdiutil attach julia-$(JULIA_VERSION)-mac64.dmg
43+
ln -s /Volumes/Julia-$(JULIA_VERSION)/Julia-$(JULIA_VERSION_SHORT).app/Contents/Resources/julia/bin/julia
44+
displayName: 'Download and extract Julia 1.0'
45+
46+
- script: |
47+
./julia --project=@. -e 'using Pkg; Pkg.instantiate()'
48+
./julia --project=@. -e 'using Pkg; Pkg.test("GenericLinearAlgebra")'
49+
displayName: 'Run the tests'
50+
51+
- job: Windows
52+
53+
pool:
54+
vmImage: 'VS2017-Win2016'
55+
56+
strategy:
57+
matrix:
58+
Julia 1.0:
59+
JULIA_VERSION: '1.0.1'
60+
61+
steps:
62+
- powershell: |
63+
wget https://julialang-s3.julialang.org/bin/winnt/x64/1.0/julia-$(JULIA_VERSION)-win64.exe -OutFile julia-$(JULIA_VERSION)-win64.exe
64+
Start-Process -FilePath .\julia-$(JULIA_VERSION)-win64.exe -ArgumentList "/S /D=C:\julia" -NoNewWindow -Wait
65+
displayName: 'Download and extract Julia 1.0'
66+
67+
- powershell: |
68+
C:\julia\bin\julia --project=@. -e 'using Pkg; Pkg.instantiate()'
69+
C:\julia\bin\julia --project=@. -e 'using Pkg; Pkg.test(\"GenericLinearAlgebra\")'
70+
displayName: 'Run the tests'

0 commit comments

Comments
 (0)