Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] chore: sync installed bolt versions on CI #685

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ cache:
branches:
only:
- master
- v6

install:
- ps: Install-Product node $env:nodejs_version $env:platform
- set PATH=%APPDATA%\npm;%PATH%
- npm i -g bolt@0.21.2
- if not exist "node_modules" mkdir node_modules
- ps: Remove-Item node_modules -Recurse -Force
- npm i -g bolt@0.22.6
- bolt
- yarn build
- ps: |
Expand Down
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:
- npm i -g bolt@0.22.5
- 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.5
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