Skip to content
Permalink
Browse files

chore: run now with Node 8 in a separate Travis CI stage

Does not work with Node 6

Also, upgrade bolt.
  • Loading branch information
malept committed Dec 26, 2018
1 parent 9125042 commit f93da7a58bef25723f9495cb07c1080bffbb224b
Showing with 30 additions and 22 deletions.
  1. +22 −13 .travis.yml
  2. +1 −1 ci/docker.sh
  3. +6 −0 ci/docs.sh
  4. +1 −8 ci/script.sh
@@ -1,28 +1,37 @@
language: node_js
node_js:
- '6'
os:
- linux
- osx
dist: trusty
node_js: '6'
dist: xenial
osx_image: xcode8.3
sudo: required
cache:
directories:
- node_modules
services:
- docker
env:
matrix:
- NODE_INSTALLER=npm
- NODE_INSTALLER=yarn
jobs:
include:
- stage: test
os: linux
env: NODE_INSTALLER=npm
- os: linux
env: NODE_INSTALLER=yarn
- os: osx
env: NODE_INSTALLER=npm
- os: osx
env: NODE_INSTALLER=yarn
- stage: docs
os: linux
node_js: '8'
script: ci/docs.sh
stages:
- test
- name: docs
if: branch = master
branches:
only:
- master
- v6
- /^v\d+\.\d+\.\d+/
install:
- npm i -g bolt@0.21.2
- npm i -g bolt@0.22.5
script: ci/script.sh
after_success: ci/coverage.sh
notifications:
@@ -5,7 +5,7 @@ set -e
NODE_INSTALLER="$1"

npm i -g yarn
npm i -g bolt@0.21.2
npm i -g bolt@0.22.5

cd /code

@@ -0,0 +1,6 @@
#!/bin/bash -e

yarn global add now
bolt
bolt build
yarn docs:deploy:ci
@@ -1,6 +1,4 @@
#!/bin/bash

set -e
#!/bin/bash -e

if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
sudo docker run --privileged --interactive --tty --volume $(pwd):/code malept/electron-forge-container:latest /code/ci/docker.sh $NODE_INSTALLER
@@ -9,9 +7,4 @@ else
yarn build
yarn lint
yarn test
echo "$NODE_INSTALLER-$TRAVIS_SECURE_ENV_VARS-$TRAVIS_BRANCH"
if [[ "$NODE_INSTALLER-$TRAVIS_SECURE_ENV_VARS-$TRAVIS_BRANCH" = "yarn-true-master" ]]; then
npm i -g now
yarn docs:deploy:ci
fi
fi

0 comments on commit f93da7a

Please sign in to comment.
You can’t perform that action at this time.