Skip to content

Commit

Permalink
Fix travis yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Nov 3, 2020
1 parent 7b35503 commit f64fe72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
dist: xenial
language: node_js
install: npm i
install: yarn

cache:
directories:
- node_modules

jobs:
include:
# Lint doesn't need to build
- stage: lint
script: npm run lint
script: yarn lint
node_js: "12"
- stage: unit tests
# Test already builds
script: npm run test
script: yart test
node_js: "10"
- node_js: "12"
- stage: coverage
# Coverage does NOT build
script: npm run build && npm run coverage
script: yarn coverage
node_js: "12"

# NOTE: This is unused atm
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "matrix-appservice-discord",
"version": "0.5.0",
"version": "1.0.0",
"description": "A bridge between Matrix and Discord",
"main": "discordas.js",
"scripts": {
"test": "mocha -r ts-node/register test/config.ts test/test_*.ts test/**/test_*.ts",
"lint": "tslint --project ./tsconfig.json -t stylish",
"coverage": "tsc && nyc mocha -r ts-node/register test/config.ts test/test_*.ts test/**/test_*.ts",
"coverage": "nyc mocha -r ts-node/register test/config.ts test/test_*.ts test/**/test_*.ts",
"build": "tsc",
"postinstall": "npm run build",
"start": "npm run-script build && node ./build/src/discordas.js -p 9005 -c config.yaml",
Expand Down Expand Up @@ -45,7 +45,7 @@
"js-yaml": "^3.14.0",
"marked": "^1.2.2",
"matrix-bot-sdk": "0.5.4",
"matrix-discord-parser": "0.1.4",
"matrix-discord-parser": "0.1.5",
"mime": "^2.4.6",
"node-html-parser": "^1.2.19",
"p-queue": "^6.4.0",
Expand All @@ -63,7 +63,7 @@
"@types/mime": "^2.0.2",
"@types/mocha": "^7.0.2",
"@types/node": "^12",
"@types/sqlite3": "^3.1.6",
"@types/better-sqlite3": "^5.4.1",
"chai": "^4.2.0",
"mocha": "^8.0.1",
"nyc": "^15.1.0",
Expand Down

0 comments on commit f64fe72

Please sign in to comment.