Skip to content

Commit e5d20ee

Browse files
Merge branch 'master' into dev
2 parents c7e6e09 + f67f15c commit e5d20ee

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.travis.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ sudo: false
66
language: cpp
77
env:
88
- GITHUB_DEPLOY_PRERELEASE=$(if echo $VERSION | grep -q "\-" ; then echo true; else echo false; fi)
9+
- WINDOWS_BETA=$(if [ "$GITHUB_DEPLOY_PRERELEASE" = true ] && [ "$TRAVIS_OS_NAME" = "windows" ] ; then echo true; else echo false; fi)
10+
- LINUX_BETA=$(if [ "$GITHUB_DEPLOY_PRERELEASE" = true ] && [ "$TRAVIS_OS_NAME" = "linux" ] ; then echo true; else echo false; fi)
11+
- WINDOWS_STABLE=$(if [ "$GITHUB_DEPLOY_PRERELEASE" = false ] && [ "$TRAVIS_OS_NAME" = "windows" ] ; then echo true; else echo false; fi)
12+
- LINUX_STABLE=$(if [ "$GITHUB_DEPLOY_PRERELEASE" = false ] && [ "$TRAVIS_OS_NAME" = "linux" ] ; then echo true; else echo false; fi)
913
#branches:
1014
# only:
1115
# - master
@@ -43,7 +47,7 @@ deploy:
4347
file: libcsharp-module.so
4448
on:
4549
repo: FabianTerhorst/coreclr-module
46-
condition: os = linux AND env(GITHUB_DEPLOY_PRERELEASE) IS false
50+
condition: "$LINUX_STABLE = true"
4751
tags: true
4852
- provider: releases
4953
skip_cleanup: true
@@ -52,7 +56,7 @@ deploy:
5256
file: csharp-module.dll
5357
on:
5458
repo: FabianTerhorst/coreclr-module
55-
condition: os = windows AND env(GITHUB_DEPLOY_PRERELEASE) IS false
59+
condition: "$WINDOWS_STABLE = true"
5660
tags: true
5761
- provider: releases
5862
skip_cleanup: true
@@ -62,7 +66,7 @@ deploy:
6266
file: libcsharp-module.so
6367
on:
6468
repo: FabianTerhorst/coreclr-module
65-
condition: os = linux AND env(GITHUB_DEPLOY_PRERELEASE) IS true
69+
condition: "$LINUX_BETA = true"
6670
tags: true
6771
- provider: releases
6872
skip_cleanup: true
@@ -72,35 +76,35 @@ deploy:
7276
file: csharp-module.dll
7377
on:
7478
repo: FabianTerhorst/coreclr-module
75-
condition: os = windows AND env(GITHUB_DEPLOY_PRERELEASE) IS true
79+
condition: "$WINDOWS_BETA = true"
7680
tags: true
7781
- provider: script
7882
skip_cleanup: true
7983
script: cd .. && cd .. && cd .. && cd .. && scs3-win.exe upload .\runtime\build\src\Release\csharp-module.dll coreclr-module/stable/x64_win32/csharp-module.dll
8084
on:
8185
repo: FabianTerhorst/coreclr-module
82-
condition: os = windows AND env(GITHUB_DEPLOY_PRERELEASE) IS false
86+
condition: "$WINDOWS_STABLE = true"
8387
tags: true
8488
- provider: script
8589
skip_cleanup: true
8690
script: cd .. && cd .. && cd .. && chmod +x ./scs3-linux && ./scs3-linux upload ./runtime/build/src/libcsharp-module.so coreclr-module/stable/x64_linux/libcsharp-module.so
8791
on:
8892
repo: FabianTerhorst/coreclr-module
89-
condition: os = linux AND env(GITHUB_DEPLOY_PRERELEASE) IS false
93+
condition: "$LINUX_STABLE = true"
9094
tags: true
9195
- provider: script
9296
skip_cleanup: true
9397
prerelease: true
9498
script: cd .. && cd .. && cd .. && cd .. && scs3-win.exe upload .\runtime\build\src\Release\csharp-module.dll coreclr-module/beta/x64_win32/csharp-module.dll
9599
on:
96100
repo: FabianTerhorst/coreclr-module
97-
condition: os = windows AND env(GITHUB_DEPLOY_PRERELEASE) IS true
101+
condition: "$WINDOWS_BETA = true"
98102
tags: true
99103
- provider: script
100104
skip_cleanup: true
101105
prerelease: true
102106
script: cd .. && cd .. && cd .. && chmod +x ./scs3-linux && ./scs3-linux upload ./runtime/build/src/libcsharp-module.so coreclr-module/beta/x64_linux/libcsharp-module.so
103107
on:
104108
repo: FabianTerhorst/coreclr-module
105-
condition: os = linux AND env(GITHUB_DEPLOY_PRERELEASE) IS true
109+
condition: "$LINUX_BETA = true"
106110
tags: true

0 commit comments

Comments
 (0)