2018-02-01 10:04:20 +00:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2018-02-01 10:29:46 +00:00
|
|
|
- "8"
|
2018-02-01 10:04:20 +00:00
|
|
|
|
2018-02-08 10:57:34 +00:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
2018-02-01 12:46:27 +00:00
|
|
|
before_install:
|
2018-02-08 15:48:58 +00:00
|
|
|
- mysql -u root -e 'create database test_frappejs'
|
2018-02-08 15:52:07 +00:00
|
|
|
- echo "USE mysql;\nCREATE USER 'test_frappejs'@'localhost' IDENTIFIED BY 'test_frappejs';\nFLUSH PRIVILEGES;\n"
|
|
|
|
- echo "USE mysql;\nGRANT ALL PRIVILEGES ON \`test_frappejs\`.* TO 'test_frappejs'@'localhost';\n"
|
2018-02-01 10:04:20 +00:00
|
|
|
- "git clone https://github.com/frappe/frappejs && cd frappejs"
|
|
|
|
- "npm install -g yarn"
|
2018-02-01 10:17:25 +00:00
|
|
|
- "yarn"
|
2018-02-01 10:04:20 +00:00
|
|
|
|
|
|
|
script:
|
2018-02-01 12:46:27 +00:00
|
|
|
- "yarn link && yarn link frappejs"
|
|
|
|
- "yarn run test"
|