Fix packaging in travis

pull/33/head
Clement Michaud 2017-05-13 18:32:25 +02:00
parent 4356cfe7c1
commit e1b7877c24
3 changed files with 12 additions and 3 deletions

View File

@ -19,8 +19,10 @@ addons:
before_install: npm install -g npm@'>=2.13.5'
script:
- npm test
- docker build -t clems4ever/authelia .
- npm install
- grunt test
- grunt build
- grunt docker-build
- docker-compose build
- docker-compose up -d
- sleep 5

View File

@ -13,6 +13,10 @@ module.exports = function(grunt) {
"test": {
cmd: "npm",
args: ['run', 'test']
},
"docker-build": {
cmd: "docker",
args: ['build', '-t', 'clems4ever/authelia', '.']
}
},
copy: {
@ -43,7 +47,9 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['build']);
grunt.registerTask('res', ['copy:resources', 'copy:views', 'copy:public_html']);
grunt.registerTask('build', ['run:tslint', 'run:build-ts', 'res']);
grunt.registerTask('docker-build', ['run:docker-build']);
grunt.registerTask('test', ['run:test']);
};

View File

@ -70,6 +70,7 @@
"sinon-promise": "^0.1.3",
"tmp": "0.0.31",
"ts-node": "^3.0.4",
"tslint": "^5.2.0"
"tslint": "^5.2.0",
"typescript": "^2.3.2"
}
}