Make Travis faster by removing double-build

Problem: Travis builds PRs and branches, which means that local branches
get built twice (!).

Solution: Travis should only build `master`, and maybe tags.
This commit is contained in:
Christian Bundy 2020-01-23 12:09:54 -08:00
parent 7f9334e166
commit 0a10e37cee
2 changed files with 21 additions and 7 deletions

View File

@ -13,6 +13,8 @@ os:
- osx
- windows
# This keeps Yarn from hanging the build.
env:
- YARN_GPG=no
# Don't build arbitrary branches, just pull requests + master + semver tags.
branches:
only:
- master
- "/^v\\d+\\.\\d+\\.\\d+$/"

View File

@ -2,12 +2,15 @@
"name": "@fraction/oasis",
"version": "2.11.0",
"description": "friendly neighborhood scuttlebutt interface",
"repository": "git@github.com:fraction/oasis.git",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/fraction/oasis.git"
},
"license": "AGPL-3.0",
"author": "Christian Bundy <christianbundy@fraction.io>",
"main": "src/index.js",
"bin": {
"oasis": "./src/index.js"
"oasis": "src/index.js"
},
"scripts": {
"dev": "nodemon --inspect src/index.js --debug --no-open",
@ -42,7 +45,8 @@
"ssb-msgs": "^5.2.0",
"ssb-ref": "^2.13.9",
"ssb-thread-schema": "^1.1.1",
"yargs": "^15.0.0"
"yargs": "^15.0.0",
"sharp": "^0.23.0"
},
"devDependencies": {
"changelog-version": "^1.0.1",
@ -54,5 +58,13 @@
},
"optionalDependencies": {
"sharp": "^0.23.0"
}
},
"bugs": {
"url": "https://github.com/fraction/oasis/issues"
},
"homepage": "https://github.com/fraction/oasis#readme",
"directories": {
"doc": "docs"
},
"keywords": []
}