github-desktop/circle.yml
Brendan Forster 3aa985dae4 the recommended install steps for Node and Yarn are broken
This makes the setup on Circle more explicit, and forces
Yarn to use our version of Node (rather than implicitly
using 9.x) when building native modules, because the
current versions of some of our dependencies  don't have
prebuilt binaries that target these platforms. Maybe
there are updates available. Maybe there's not. Maybe
I don't care and just want this stuff to keep working
like it was a few hours ago.
2017-12-09 11:12:34 +11:00

49 lines
941 B
YAML

experimental:
notify:
branches:
only:
- master
- /^__release-.*/
machine:
xcode:
version: 7.3
dependencies:
cache_directories:
- ".eslintcache"
- "node_modules"
- "~/.electron"
- "~/Library/Caches/Yarn/v1"
pre:
- brew update
# uninstall Node 6 which is shipped by default on Circle
- brew uninstall node
# install latest Node LTS (8.9.3 as of writing)
- brew install node@8 --force
# everything is terrible, but we must march on
- brew link --overwrite node@8 --force
# this isn't the recommended way but some dependencies don't
# yet have native bindings for Node 9.2.1
- npm install -g yarn
override:
- yarn install --force
compile:
override:
- yarn lint
- yarn build:prod
test:
override:
- yarn test:setup
- yarn test
deployment:
production:
branch: /^__release-.*/
commands:
- yarn run publish