Luca Prete | 74fa322 | 2018-03-02 15:46:14 -0800 | [diff] [blame] | 1 | #!/bin/bash -ex |
2 | |||||
3 | # Install Node | ||||
Luca Prete | b411d42 | 2018-03-02 16:12:35 -0800 | [diff] [blame^] | 4 | apt-get install nodejs |
Luca Prete | 74fa322 | 2018-03-02 15:46:14 -0800 | [diff] [blame] | 5 | |
6 | # Install NPM | ||||
Luca Prete | b411d42 | 2018-03-02 16:12:35 -0800 | [diff] [blame^] | 7 | apt-get install npm |
Luca Prete | 74fa322 | 2018-03-02 15:46:14 -0800 | [diff] [blame] | 8 | |
9 | # Install npm deps | ||||
10 | npm install | ||||
11 | typings install | ||||
12 | |||||
13 | # Check code style | ||||
14 | npm run lint | ||||
15 | |||||
16 | # Execute tests | ||||
17 | npm test |