Skip to content

Commit

Permalink
travis: Fix job configuration for windows
Browse files Browse the repository at this point in the history
* call `bundle clean` before caching
* explicitely specify path for `bundle install`
* create a `--msys2--` file as a marker to skip msys2 & ridk install
  • Loading branch information
avdv committed Oct 9, 2020
1 parent 326be82 commit 1b659c9
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ language:
os:
- linux

cache:
bundler: true
directories:
- $HOME/AppData/Local/Temp/chocolatey
- /C/tools/msys64
cache: bundler

rvm:
- '2.5'
Expand All @@ -36,14 +32,27 @@ jobs:
before_cache:
- |-
# https://unix.stackexchange.com/a/137322/107554
$msys2 pacman --sync --clean --noconfirm
pacman --sync --clean --noconfirm
- bundle clean
before_install:
- ruby --version
- gem --version
- choco install msys2 --params /NoUpdate
- powershell -Command 'Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass ; & c:\tools\ruby27\bin\ridk.ps1' install dev_tools
- |
if [[ ! -f /C/tools/msys64/--msys2-- ]]; then
rm -rf /C/tools/msys64
choco uninstall -y mingw
choco upgrade --no-progress -y msys2 --params /NoUpdate
ridk.cmd install dev_tools
fi
- touch /C/tools/msys64/--msys2--
install:
- bundle install --retry=3
- bundle install --path vendor/bundle --retry=3
- export MSYS=winsymlinks:nativestrict
cache:
directories:
- $HOME/AppData/Local/Temp/chocolatey
- /C/tools/msys64
- vendor/bundle

before_install:
- gem --version
Expand Down

0 comments on commit 1b659c9

Please sign in to comment.