mirror of
https://github.com/grafana/grafana.git
synced 2025-09-25 16:54:15 +08:00
Updated build and wercker file for new repo structure
This commit is contained in:
@ -11,7 +11,7 @@ module.exports = function (grunt) {
|
|||||||
docsDir: 'docs/'
|
docsDir: 'docs/'
|
||||||
};
|
};
|
||||||
|
|
||||||
config.mode = grunt.option('mode') || 'standalone';
|
config.mode = grunt.option('mode') || 'backend';
|
||||||
config.modeOptions = {
|
config.modeOptions = {
|
||||||
zipSuffix: '',
|
zipSuffix: '',
|
||||||
requirejs: {
|
requirejs: {
|
||||||
|
@ -35,14 +35,13 @@ module.exports = function(grunt) {
|
|||||||
});
|
});
|
||||||
grunt.config('clean.dest_dir', ['<%= destDir %>']);
|
grunt.config('clean.dest_dir', ['<%= destDir %>']);
|
||||||
grunt.config('copy.backend_bin', {
|
grunt.config('copy.backend_bin', {
|
||||||
cwd: '../bin',
|
cwd: 'bin',
|
||||||
expand: true,
|
expand: true,
|
||||||
src: ['grafana'],
|
src: ['grafana'],
|
||||||
options: { mode: true},
|
options: { mode: true},
|
||||||
dest: '<%= tempDir %>'
|
dest: '<%= tempDir %>'
|
||||||
});
|
});
|
||||||
grunt.config('copy.backend_files', {
|
grunt.config('copy.backend_files', {
|
||||||
cwd: '../',
|
|
||||||
expand: true,
|
expand: true,
|
||||||
src: ['conf/*', 'vendor/**/*', '!conf/grafana.dev.ini'],
|
src: ['conf/*', 'vendor/**/*', '!conf/grafana.dev.ini'],
|
||||||
dest: '<%= tempDir %>'
|
dest: '<%= tempDir %>'
|
||||||
|
@ -24,15 +24,13 @@ build:
|
|||||||
code: |
|
code: |
|
||||||
go run build.go test
|
go run build.go test
|
||||||
# frontend
|
# frontend
|
||||||
- npm-install:
|
- npm-install
|
||||||
cwd: grafana/
|
|
||||||
- grunt:
|
- grunt:
|
||||||
cwd: grafana/
|
tasks: release
|
||||||
tasks: release --mode=backend
|
|
||||||
- script:
|
- script:
|
||||||
name: copy output
|
name: copy output
|
||||||
code: |-
|
code: |-
|
||||||
rsync -rv "$WERCKER_SOURCE_DIR/grafana/dist/" "$WERCKER_OUTPUT_DIR"
|
rsync -rv "$WERCKER_SOURCE_DIR/dist/" "$WERCKER_OUTPUT_DIR"
|
||||||
deploy:
|
deploy:
|
||||||
steps:
|
steps:
|
||||||
- add-to-known_hosts:
|
- add-to-known_hosts:
|
||||||
|
Reference in New Issue
Block a user