mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
rvm: 2.3.3
|
|
|
|
matrix:
|
|
include:
|
|
- os: osx
|
|
osx_image: xcode9.0
|
|
language: node_js
|
|
node_js: "8"
|
|
env:
|
|
- ELECTRON_CACHE=$HOME/.cache/electron
|
|
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
|
|
|
- os: linux
|
|
sudo: required
|
|
dist: trusty
|
|
language: node_js
|
|
node_js: "8"
|
|
env:
|
|
- ELECTRON_CACHE=$HOME/.cache/electron
|
|
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
|
|
|
# cache:
|
|
# directories:
|
|
# - node_modules
|
|
# - $HOME/.cache/electron
|
|
# - $HOME/.cache/electron-builder
|
|
|
|
before_install:
|
|
# HOMEBREW_NO_AUTO_UPDATE needed so that Homebrew doesn't upgrade to the next
|
|
# version, which requires Ruby 2.3, which is not available on the Travis VM.
|
|
- |
|
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install yarn
|
|
else
|
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
sudo apt-get update && sudo apt-get install yarn
|
|
fi
|
|
|
|
script:
|
|
- |
|
|
cd ElectronClient/app
|
|
rsync -aP ../../ReactNativeClient/lib lib/
|
|
npm install
|
|
yarn dist
|