This repository was archived by the owner on Aug 24, 2022. It is now read-only.
File tree 8 files changed +42
-31
lines changed 8 files changed +42
-31
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,16 @@ before_install:
8
8
9
9
install :
10
10
- export NODEJS=$(dirname `nvm which $NODEJS_VERSION`)
11
+ - ci/download-asset.sh packages .
11
12
- nuget restore JSIL.sln
13
+ - ci/upload-asset.sh packages packages &
12
14
- nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
13
15
14
16
script :
15
17
- xbuild /p:Configuration=Release /p:Platform=NoXna /v:m JSIL.sln
16
- - ci/download-compile-cache .sh
18
+ - ci/download-asset .sh compilecache /
17
19
- mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./bin/Tests.DCE.dll ./bin/SimpleTests.dll ./bin/Tests.dll --run:$TestRun --exclude:FailsOnMono\|\(FailsOnMonoWhenStubbed+Stubbed\)\|\(FailsOnMonoWhenStubbed+Translated\)
18
- - ci/upload-compile-cache .sh
20
+ - ci/upload-asset .sh compilecache "/tmp/JSIL Tests"
19
21
20
22
env :
21
23
global :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ SUBTAG=$1
4
+ DESTDIR=$2
5
+ ZIPFILE=/tmp/$SUBTAG .zip
6
+
7
+ curl -s -S " jsil.org/ci/download.aspx?key=travisci&tag=$JSIL_STORAGE_TAG -$SUBTAG &password=$JSIL_STORAGE_PASSWORD " -o $ZIPFILE
8
+ unzip -q -o $ZIPFILE -d " $DESTDIR "
9
+ rm -rf " $DESTDIR /$SUBTAG /$SUBTAG "
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ SUBTAG=$1
4
+ SOURCEDIR=$2
5
+ ZIPFILE=/tmp/$SUBTAG .zip
6
+
7
+ echo " Uploading $SUBTAG ..."
8
+ rm $ZIPFILE
9
+ zip -3 -r -q $ZIPFILE " $SOURCEDIR "
10
+ curl -S -X POST " jsil.org/ci/upload.aspx?key=travisci&tag=$JSIL_STORAGE_TAG -$SUBTAG &password=$JSIL_STORAGE_PASSWORD " --data-binary " @$ZIPFILE "
11
+ echo " Done uploading $SUBTAG ."
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
public partial class DownloadPage : JSONPage {
6
6
protected void Page_Load ( object sender , EventArgs e ) {
7
7
if ( Request . RequestType != "GET" ) {
8
- Fail ( "Request must be a GET" ) ;
8
+ Response . Clear ( ) ;
9
+ Response . StatusCode = 400 ;
9
10
return ;
10
11
}
11
12
12
13
string targetPath ;
13
- if ( ! SetupRequest ( out targetPath ) )
14
+ if ( ! SetupRequest ( out targetPath ) ) {
15
+ Response . Clear ( ) ;
16
+ Response . StatusCode = 400 ;
14
17
return ;
18
+ }
15
19
16
20
if ( ! File . Exists ( targetPath ) ) {
17
- Fail ( "File not found" ) ;
21
+ Response . Clear ( ) ;
22
+ Response . StatusCode = 404 ;
18
23
return ;
19
24
}
20
25
21
26
Response . Clear ( ) ;
22
27
Response . StatusCode = 200 ;
23
28
Response . ContentType = "application/octet-stream" ;
24
29
Response . AddHeader ( "Content-Disposition" , "attachment; filename=\" " + Path . GetFileName ( targetPath ) + "\" " ) ;
30
+ Response . Buffer = false ;
25
31
Response . Flush ( ) ;
26
32
27
33
using ( var fileStream = File . OpenRead ( targetPath ) )
Original file line number Diff line number Diff line change 4
4
5
5
public partial class UploadPage : JSONPage {
6
6
protected void Page_Load ( object sender , EventArgs e ) {
7
- /*
8
- if (Request.RequestType != "POST") {
9
- Fail("Request must be a POST");
10
- return;
11
- }
12
- */
13
-
14
7
string targetPath ;
15
8
if ( ! SetupRequest ( out targetPath ) )
16
9
return ;
Original file line number Diff line number Diff line change 1
1
<configuration>
2
2
<system.web>
3
- <httpRuntime requestValidationMode="2.0" />
3
+ <httpRuntime maxRequestLength="128000" executionTimeout="600" requestValidationMode="2.0" />
4
4
<pages validateRequest="false" />
5
5
<customErrors mode="Off" />
6
6
<compilation debug="true">
7
7
</compilation>
8
8
</system.web>
9
+ <system.webServer>
10
+ <asp enableChunkedEncoding="true"/>
11
+ <httpProtocol>
12
+ <customHeaders>
13
+ <remove name="X-Powered-By" />
14
+ </customHeaders>
15
+ </httpProtocol>
16
+ </system.webServer>
9
17
</configuration>
You can’t perform that action at this time.
0 commit comments