diff --git a/.travis.yml b/.travis.yml index 6dd634a3..ea699aad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,6 @@ -matrix: - include: - - os: linux - env: BUILD_FOR=linux - - os: osx - env: BUILD_FOR=macos - language: node_js node_js: 10 -cache: - directories: - - node_modules - - app/node_modules - stages: - Build - name: Docs @@ -21,6 +9,7 @@ stages: jobs: include: - stage: 'Build' + os: linux before_install: - rm app/node_modules/.yarn-integrity || true - yarn @@ -28,7 +17,18 @@ jobs: - scripts/build-native.js - yarn run build - scripts/prepackage-plugins.js - - scripts/build-$BUILD_FOR.js + - scripts/build-linux.js + + - stage: 'Build' + os: osx + before_install: + - rm app/node_modules/.yarn-integrity || true + - yarn + script: + - scripts/build-native.js + - yarn run build + - scripts/prepackage-plugins.js + - scripts/build-macos.js - stage: 'Docs' os: linux