forked from cosmhology/PhysicalConstants.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
57 lines (49 loc) · 2.25 KB
/
appveyor.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
environment:
matrix:
# - julia_version: 0.7
# - julia_version: 1
- julia_version: 1.1
platform:
- x86 # 32-bit
- x64 # 64-bit
# # Uncomment the following lines to allow failures on nightly julia
# # (tests will run but not make your overall status red)
matrix:
allow_failures:
- julia_version: 1.1
branches:
only:
- master
- /release-.*/
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false
install:
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
build_script:
- echo "%JL_BUILD_SCRIPT%"
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
# - C:\julia\bin\julia -e "import Pkg; Pkg.BinaryProvider.probe_platform_engines!(;verbose=true)"
# - C:\julia\bin\julia -e "cmd = Pkg.BinaryProvider.gen_download_cmd("https:////github.com/LaGuer/PhysicalConstant.jl/archive/v0.0.3.tar.gz", "PhysicalConstant.tar.gz")"
# - C:\julia\bin\julia -e "unpack = Pkg.BinaryProvider.gen_unpack_cmd("PhysicalConstant.tar.gz", "PhysicalConstant")"
# - C:\julia\bin\julia -e "import Pkg; Pkg.clone(\`"https://github.com/LaGuer/PhysicalConstant.jl.git\`")"
# - C:\julia\bin\julia -e "mkdir("PhysicalConstant")"
# - C:\julia\bin\julia -e "run(unpack)"
- C:\julia\bin\julia -e "using InteractiveUtils; versioninfo();
# using UUIDs;
# before = read(\"Project.toml\", String);
# after = replace(before, \"uuid = \\\"44cfe95a-1eb2-52ea-b672-e2afdf69b78f\\\"\" =>
# \"uuid = \\\"4d836010-47a6-11e8-12b2-0918962bae33\\\"\");
# write(\"Project.toml\", before);
# - C:\julia\bin\julia -e "import Pkg; Pkg.update("PhysicalConstant")"
# - C:\julia\bin\julia -e "using PhysicalConstant.CODATA2019; CODATA2019.c_0"
- C:\julia\bin\julia -e "import Pkg; Pkg.build()"
- C:\julia\bin\julia -e "import Pkg; Pkg.status()"
test_script:
- echo "%JL_TEST_SCRIPT%"
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"
after_test:
# - C:\julia\bin\julia -e "import Pkg; cd(Pkg.dir(\"PhysicalConstant\")); Pkg.add(\"Coverage\"); using Coverage; Coveralls.submit(Coveralls.process_folder())";
- C:\julia\bin\julia -e "using Pkg; Pkg.add(\"Coverage\"); using Coverage; Codecov.submit(process_folder())"