chore(ci): fix automated mac builds
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export NVS_HOME="$HOME/.nvs"
|
||||
. "$NVS_HOME/nvs.sh" install && nvs link lts && nvs use default
|
||||
|
||||
set -e -x
|
||||
|
||||
yarn run asset-compile
|
||||
@@ -1,7 +1,7 @@
|
||||
version: 2
|
||||
|
||||
jobs:
|
||||
test:
|
||||
build:
|
||||
macos:
|
||||
xcode: "9.0"
|
||||
steps:
|
||||
@@ -11,18 +11,18 @@ jobs:
|
||||
- package-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
|
||||
- package- # Fallback for the latest package.json cache
|
||||
- run:
|
||||
name: configure-yarn
|
||||
command: .circleci/bootstrap.sh
|
||||
name: setup
|
||||
command: .circleci/setup.sh
|
||||
- save_cache:
|
||||
key: package-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
|
||||
paths:
|
||||
- node_modules
|
||||
- run:
|
||||
name: test
|
||||
command: .circleci/test.sh
|
||||
name: build
|
||||
command: .circleci/build.sh
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
test:
|
||||
jobs:
|
||||
- test
|
||||
- build
|
||||
|
||||
@@ -6,15 +6,6 @@ echo "setting up node to use latest lts"
|
||||
export NVS_HOME="$HOME/.nvs"
|
||||
git clone --depth=1 https://github.com/jasongin/nvs "$NVS_HOME"
|
||||
. "$NVS_HOME/nvs.sh" install
|
||||
nvs add lts
|
||||
nvs link lts
|
||||
nvs use default
|
||||
echo "using node $(node --version)"
|
||||
|
||||
# Install latest yarn version
|
||||
npm install -g yarn
|
||||
|
||||
echo "using yarn $(yarn --version)"
|
||||
|
||||
# Run yarn
|
||||
nvs add lts && nvs link lts nvs use default
|
||||
npm install -g yarn
|
||||
yarn
|
||||
@@ -1,11 +0,0 @@
|
||||
#1/usr/bin/env bash
|
||||
|
||||
export NVS_HOME="$HOME/.nvs"
|
||||
. "$NVS_HOME/nvs.sh" install
|
||||
|
||||
nvs link lts
|
||||
nvs use default
|
||||
|
||||
set -e -x
|
||||
|
||||
yarn run asset-compile
|
||||
Reference in New Issue
Block a user