diff --git a/.travis.yml b/.travis.yml index 57da494c..aff02292 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,20 +11,7 @@ jobs: include: - stage: 'Build' os: osx - before_install: - - set -e - - yarn - - rm app/node_modules/.yarn-integrity - - cd app - - yarn - - cd .. - script: - - set -e - - scripts/build-native.js - - yarn run build:typings - - yarn run build - - scripts/prepackage-plugins.js - - travis_wait scripts/build-macos.js + script: ./build/travis.sh - stage: 'Docs' os: linux diff --git a/build/travis.sh b/build/travis.sh new file mode 100755 index 00000000..607d0c34 --- /dev/null +++ b/build/travis.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e +yarn +rm app/node_modules/.yarn-integrity +cd app +yarn +cd .. +scripts/build-native.js +yarn run build:typings +yarn run build +scripts/prepackage-plugins.js +travis_wait scripts/build-macos.js