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-08 12:17:57 +00:00
|
|
|
install:
|
|
|
|
- sudo apt-get purge -y mysql-common mysql-server mysql-client
|
|
|
|
|
2018-02-01 12:46:27 +00:00
|
|
|
before_install:
|
2018-02-08 10:55:57 +00:00
|
|
|
- mysql -u root -ptravis -e 'create database test_frappejs'
|
|
|
|
- echo "USE mysql;\nCREATE USER 'test_frappejs'@'localhost' IDENTIFIED BY 'test_frappejs';\nFLUSH PRIVILEGES;\n" | mysql -u root -ptravis
|
|
|
|
- echo "USE mysql;\nGRANT ALL PRIVILEGES ON \`test_frappejs\`.* TO 'test_frappejs'@'localhost';\n" | mysql -u root -ptravis
|
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"
|