Commit 80c0289 1 parent b792051 commit 80c0289 Copy full SHA for 80c0289
File tree 6 files changed +15
-15
lines changed
6 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
14
- version : ['1'] # Test against current minor release
15
- os : [ubuntu-latest]
14
+ version : ['1.6', '1 '] # Test against current minor release
15
+ os : [ubuntu-latest, macOS-latest, windows-latest ]
16
16
arch : [x64]
17
17
include :
18
18
# Also test against 32-bit Linux
Original file line number Diff line number Diff line change 18
18
shell : julia --color=yes {0}
19
19
run : |
20
20
using Pkg
21
- Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.9 "))
21
+ Pkg.add(PackageSpec(name="JuliaFormatter", version="1 "))
22
22
using JuliaFormatter
23
23
format("src", verbose=true)
24
24
format("test", verbose=true)
Original file line number Diff line number Diff line change 1
1
name = " AmplNLWriter"
2
2
uuid = " 7c4d4715-977e-5154-bfe0-e096adeac482"
3
- version = " 1.0.1 "
3
+ version = " 1.0.2 "
4
4
5
5
[deps ]
6
+ Ipopt_jll = " 9cc047cb-c261-5740-88fc-0cf96f7bdcc7"
6
7
MathOptInterface = " b8f27783-ece8-5eb3-8dc8-9495eed66fee"
7
8
8
9
[compat ]
9
- Ipopt_jll = " 300.1400.400"
10
+ Ipopt_jll = " = 300.1400.400"
10
11
MathOptInterface = " 1.3"
11
12
julia = " 1.6"
12
13
13
14
[extras ]
14
- Ipopt_jll = " 9cc047cb-c261-5740-88fc-0cf96f7bdcc7"
15
15
Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
16
16
17
17
[targets ]
18
- test = [" Test" , " Ipopt_jll " ]
18
+ test = [" Test" ]
Original file line number Diff line number Diff line change 5
5
6
6
module AmplNLWriter
7
7
8
- import MathOptInterface
9
- const MOI = MathOptInterface
8
+ import MathOptInterface as MOI
10
9
11
10
"""
12
11
AbstractSolverCommand
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
10
10
[compat ]
11
11
Bonmin_jll = " 100.800.801"
12
12
Couenne_jll = " 0.500.801"
13
- Ipopt_jll = " 300.1400.400"
14
- JuMP = " 0.23, 1"
13
+ Ipopt_jll = " = 300.1400.400"
14
+ JuMP = " 1"
15
15
MINLPTests = " 0.5"
16
16
SHOT_jll = " 100.100.0"
17
17
julia = " 1.6"
Original file line number Diff line number Diff line change @@ -135,18 +135,19 @@ end
135
135
function test_io (path)
136
136
io = IOBuffer ()
137
137
model = optimizer (path; stdin = stdin , stdout = io)
138
+ MOI. set (model, MOI. RawOptimizerAttribute (" print_level" ), 1 )
138
139
x = MOI. add_variable (model)
139
140
MOI. add_constraint (model, x, MOI. GreaterThan (0.0 ))
140
141
MOI. optimize! (model)
142
+ flush (io)
141
143
seekstart (io)
142
144
s = String (take! (io))
143
- if VERSION < v " 1.6"
144
- # TODO (odow): Looks like Julia 1.0 changed something here? Not a high
145
- # priority to investigate.
146
- @test length (s) >= 0
145
+ if Sys. iswindows ()
146
+ @test_broken length (s) > 0
147
147
else
148
148
@test length (s) > 0
149
149
end
150
+ return
150
151
end
151
152
152
153
function test_single_variable_interval_dual (path)
You can’t perform that action at this time.
0 commit comments