File tree Expand file tree Collapse file tree 4 files changed +16
-13
lines changed Expand file tree Collapse file tree 4 files changed +16
-13
lines changed Original file line number Diff line number Diff line change
1
+ services :
2
+ - docker
3
+ script :
4
+ - docker-compose up --abort-on-container-exit
5
+ deploy :
6
+ provider : script
7
+ skip_cleanup : true
8
+ on :
9
+ branches :
10
+ only :
11
+ - dev
12
+ - master
Original file line number Diff line number Diff line change 1
- version : ' 3 '
1
+ version : ' 2 '
2
2
services :
3
3
test :
4
4
image : reacttt/test-lint
5
5
container_name : reacttt-test-lint
6
6
volumes :
7
7
- .:/usr/src/app
8
8
- /usr/src/app/node_modules
9
- command : bash -c " npm run lint && npm test"
9
+ command : npm run docker- test-lint
Original file line number Diff line number Diff line change 8
8
"test" : " jest --verbose --coverage --watchAll" ,
9
9
"lint" : " eslint --ext .js --ext .jsx src" ,
10
10
"docker-build" : " docker build -t reacttt/test-lint ." ,
11
- "docker-check" : " docker-compose up --abort-on-container-exit"
11
+ "docker-check" : " docker-compose up --abort-on-container-exit" ,
12
+ "docker-test-lint" : " eslint --ext .js --ext .jsx src && jest --verbose"
12
13
},
13
14
"keywords" : [
14
15
" react" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments