Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit fb2dd76

Browse files
authored
Switching travis build to Drone.io build (#229)
* drone pipeline
1 parent af25c7c commit fb2dd76

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

.drone.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
kind: pipeline
2+
type: kubernetes
3+
name: default
4+
5+
steps:
6+
- name: build
7+
image: dgrechka/node-with-chromium-build-agent:2021090805
8+
commands:
9+
- yarn install --pure-lockfile
10+
- yarn run build

Gruntfile.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,13 @@
137137
"node_modules/svg.js/dist/svg.js",
138138
"node_modules/jquery-mousewheel/jquery.mousewheel.js",
139139
"<%= concat.dist.dest %>"
140-
]
140+
],
141+
// sandboxArgs: {
142+
// args: ["--no-sandbox","--no-zygote"]
143+
// },
144+
//template: 'test/jasmine.tmpl',
145+
noSandbox: true,
146+
version: "3.8.0" // latest fails
141147
},
142148

143149
src: ['test/*.js']

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@types/jqueryui": "^1.12.10"
4141
},
4242
"scripts": {
43-
"test": "grunt default test --verbose"
43+
"build": "node --unhandled-rejections=strict node_modules/grunt-cli/bin/grunt default --verbose"
4444
},
4545
"engines": {
4646
"yarn": "^1.15.2"

test/jasmine.tmpl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Jasmine Spec Runner</title>
6+
<% css.forEach(function(style){ %>
7+
<link rel="stylesheet" type="text/css" href="<%= style %>">
8+
<% }) %>
9+
10+
</head>
11+
<body>
12+
<% with (scripts) { %>
13+
<% [].concat(polyfills, jasmine, boot, vendor, helpers, src, specs,reporters).forEach(function(script){ %>
14+
<script src="<%= script %>"></script>
15+
<% }) %>
16+
<% }; %>
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)