Skip to content

Commit

Permalink
Copy jasmine files
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Apr 14, 2022
1 parent 700aac4 commit f8c351d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Thumbs.db
/Source/Cesium.d.ts

/Specs/SpecList.js
/Specs/jasmine/**
/Source/Shaders/**/*.js
/Source/ThirdParty/Shaders/**/*.js
/Source/Workers/**
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ script:
- npm pack &> /dev/null

- npm --silent run buildApps
- npm --silent run build-specs

- npm --silent run deploy-s3 -- -b cesium-dev -d cesium/$TRAVIS_BRANCH --confirm -c 'no-cache'
- npm --silent run deploy-status -- --status success --message Deployed

- npm --silent run build-specs
- npm --silent run test -- --browsers ChromeCI --failTaskOnError --webgl-stub --release --suppressPassed

# Various Node.js smoke-screen tests
Expand Down
13 changes: 5 additions & 8 deletions Specs/SpecRunner.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@
<meta charset="utf-8" />
<title>Jasmine Spec Runner v4.0.1</title>

<link
rel="stylesheet"
href="../node_modules/jasmine-core/lib/jasmine-core/jasmine.css"
/>
<link rel="stylesheet" href="./jasmine/jasmine.css" />

<script src="../node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script src="../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
<script src="../node_modules/jasmine-core/lib/jasmine-core/boot0.js"></script>
<script src="./jasmine/jasmine.js"></script>
<script src="./jasmine/jasmine-html.js"></script>
<script src="./jasmine/boot0.js"></script>
<script type="module" src="./spec-main.js"></script>
<script src="../node_modules/jasmine-core/lib/jasmine-core/boot1.js"></script>
<script src="./jasmine/boot1.js"></script>
</head>
<body>
<script>
Expand Down
11 changes: 11 additions & 0 deletions gulpfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const filesToClean = [
"!Source/Workers/transferTypedArrayTest.js",
"Source/ThirdParty/Shaders/*.js",
"Specs/SpecList.js",
"Specs/jasmine/**",
"Apps/Sandcastle/jsHintOptions.js",
"Apps/Sandcastle/gallery/gallery-index.js",
"Apps/Sandcastle/templates/bucket.css",
Expand Down Expand Up @@ -274,6 +275,16 @@ gulp.task("build-specs", function buildSpecs() {
format: "iife",
});
})
.then(function () {
// Copy jasmine runner files
return globby([
"node_modules/jasmine-core/lib/jasmine-core",
"!node_modules/jasmine-core/lib/jasmine-core/example",
]).then(function (files) {
const stream = gulp.src(files).pipe(gulp.dest("Specs/jasmine"));
return streamToPromise(stream);
});
})
.then(function () {
return rollup
.rollup({
Expand Down

0 comments on commit f8c351d

Please sign in to comment.