mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Fix packaging in travis
This commit is contained in:
parent
4356cfe7c1
commit
e1b7877c24
|
@ -19,8 +19,10 @@ addons:
|
||||||
|
|
||||||
before_install: npm install -g npm@'>=2.13.5'
|
before_install: npm install -g npm@'>=2.13.5'
|
||||||
script:
|
script:
|
||||||
- npm test
|
- npm install
|
||||||
- docker build -t clems4ever/authelia .
|
- grunt test
|
||||||
|
- grunt build
|
||||||
|
- grunt docker-build
|
||||||
- docker-compose build
|
- docker-compose build
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
- sleep 5
|
- sleep 5
|
||||||
|
|
|
@ -13,6 +13,10 @@ module.exports = function(grunt) {
|
||||||
"test": {
|
"test": {
|
||||||
cmd: "npm",
|
cmd: "npm",
|
||||||
args: ['run', 'test']
|
args: ['run', 'test']
|
||||||
|
},
|
||||||
|
"docker-build": {
|
||||||
|
cmd: "docker",
|
||||||
|
args: ['build', '-t', 'clems4ever/authelia', '.']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
copy: {
|
copy: {
|
||||||
|
@ -43,7 +47,9 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask('default', ['build']);
|
grunt.registerTask('default', ['build']);
|
||||||
|
|
||||||
grunt.registerTask('res', ['copy:resources', 'copy:views', 'copy:public_html']);
|
grunt.registerTask('res', ['copy:resources', 'copy:views', 'copy:public_html']);
|
||||||
|
|
||||||
grunt.registerTask('build', ['run:tslint', 'run:build-ts', 'res']);
|
grunt.registerTask('build', ['run:tslint', 'run:build-ts', 'res']);
|
||||||
|
grunt.registerTask('docker-build', ['run:docker-build']);
|
||||||
|
|
||||||
grunt.registerTask('test', ['run:test']);
|
grunt.registerTask('test', ['run:test']);
|
||||||
};
|
};
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
"sinon-promise": "^0.1.3",
|
"sinon-promise": "^0.1.3",
|
||||||
"tmp": "0.0.31",
|
"tmp": "0.0.31",
|
||||||
"ts-node": "^3.0.4",
|
"ts-node": "^3.0.4",
|
||||||
"tslint": "^5.2.0"
|
"tslint": "^5.2.0",
|
||||||
|
"typescript": "^2.3.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user