-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
3,380 additions
and
1,834 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,82 @@ | ||
language: node_js | ||
sudo: required | ||
dist: xenial | ||
jobs: | ||
include: | ||
- stage: test | ||
name: "Unit Tests: Node 8" | ||
language: node_js | ||
sudo: required | ||
dist: xenial | ||
|
||
node_js: | ||
- "8" | ||
- "10" | ||
node_js: | ||
- "8" | ||
|
||
branches: | ||
only: | ||
- master | ||
branches: | ||
only: | ||
- master | ||
|
||
services: | ||
- mysql | ||
services: | ||
- mysql | ||
|
||
install: | ||
- npm install | ||
install: | ||
- npm install | ||
|
||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=password('test') where user='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root -ptest | ||
- sudo service mysql restart | ||
- cp test/config_test.js.template config.js | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=password('test') where user='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root -ptest | ||
- sudo service mysql restart | ||
- cp test/config_test.js.template config.js | ||
|
||
before_script: | ||
- npm run lint | ||
- npm run lint:text | ||
before_script: | ||
- npm run lint | ||
|
||
after_script: | ||
- npm run test:coveralls | ||
after_script: | ||
- npm run test:coveralls | ||
|
||
- stage: test | ||
name: "Unit Tests: Node 10" | ||
language: node_js | ||
sudo: required | ||
dist: xenial | ||
|
||
node_js: | ||
- "8" | ||
- "10" | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
services: | ||
- mysql | ||
|
||
install: | ||
- npm install | ||
|
||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=password('test') where user='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root -ptest | ||
- sudo service mysql restart | ||
- cp test/config_test.js.template config.js | ||
|
||
before_script: | ||
- npm run lint | ||
|
||
after_script: | ||
- npm run test:coveralls | ||
|
||
- stage: test | ||
name: "Documentation Tests" | ||
language: node_js | ||
|
||
node_js: | ||
- "10" | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
install: | ||
- npm install | ||
|
||
script: | ||
- npm run lint:md | ||
- npm run lint:text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.