Skip to content

Commit

Permalink
Switching travis build to Drone.io build (#229)
Browse files Browse the repository at this point in the history
* drone pipeline
  • Loading branch information
dgrechka authored Sep 13, 2021
1 parent af25c7c commit fb2dd76
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kind: pipeline
type: kubernetes
name: default

steps:
- name: build
image: dgrechka/node-with-chromium-build-agent:2021090805
commands:
- yarn install --pure-lockfile
- yarn run build
8 changes: 7 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@
"node_modules/svg.js/dist/svg.js",
"node_modules/jquery-mousewheel/jquery.mousewheel.js",
"<%= concat.dist.dest %>"
]
],
// sandboxArgs: {
// args: ["--no-sandbox","--no-zygote"]
// },
//template: 'test/jasmine.tmpl',
noSandbox: true,
version: "3.8.0" // latest fails
},

src: ['test/*.js']
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@types/jqueryui": "^1.12.10"
},
"scripts": {
"test": "grunt default test --verbose"
"build": "node --unhandled-rejections=strict node_modules/grunt-cli/bin/grunt default --verbose"
},
"engines": {
"yarn": "^1.15.2"
Expand Down
18 changes: 18 additions & 0 deletions test/jasmine.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<% css.forEach(function(style){ %>
<link rel="stylesheet" type="text/css" href="<%= style %>">
<% }) %>

</head>
<body>
<% with (scripts) { %>
<% [].concat(polyfills, jasmine, boot, vendor, helpers, src, specs,reporters).forEach(function(script){ %>
<script src="<%= script %>"></script>
<% }) %>
<% }; %>
</body>
</html>

0 comments on commit fb2dd76

Please sign in to comment.