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' 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

View File

@ -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']);
}; };

View File

@ -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"
} }
} }