Skip to content

Commit

Permalink
chore: DRY up bolt versions
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Mar 18, 2019
1 parent 1fd4c7a commit e1fadab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ osx_image: xcode8.3
cache: npm
services:
- docker
env:
global:
- BOLT_VERSION: "0.22.6"
jobs:
include:
- stage: test
Expand All @@ -29,7 +32,7 @@ branches:
- master
- /^v\d+\.\d+\.\d+/
install:
- if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then npm install -g bolt@0.22.6; fi
- if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then npm install -g bolt@$BOLT_VERSION; fi
script: ci/script.sh
after_success: ci/coverage.sh
notifications:
Expand Down
7 changes: 3 additions & 4 deletions ci/docker.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/bin/bash

set -e
#!/bin/bash -e

NODE_INSTALLER="$1"
BOLT_VERSION="$2"

npm i -g yarn
npm i -g bolt@0.22.6
npm i -g bolt@$BOLT_VERSION

cd /code

Expand Down
2 changes: 1 addition & 1 deletion ci/script.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/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
sudo docker run --privileged --interactive --tty --volume $(pwd):/code malept/electron-forge-container:latest /code/ci/docker.sh $NODE_INSTALLER $BOLT_VERSION
else
bolt
yarn build
Expand Down

0 comments on commit e1fadab

Please sign in to comment.