Skip to content

Commit 332b887

Browse files
authored
fix Travis-CI error using git lfs (SimulatedGREG#996)
1 parent df99ed9 commit 332b887

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ addons:
2626
#- xvfb
2727
{{/testing}}
2828
before_install:
29-
- mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v1.2.1/git-lfs-$([
30-
"$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-1.2.1.tar.gz
31-
| tar -xz -C /tmp/git-lfs --strip-components 1 && /tmp/git-lfs/git-lfs pull
29+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install git-lfs; fi
3230
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils; fi
3331
install:
3432
{{#testing unit e2e}}
@@ -40,6 +38,8 @@ install:
4038
- source ~/.bashrc
4139
- npm install -g xvfb-maybe
4240
- yarn
41+
before_script:
42+
- git lfs pull
4343
script:
4444
{{#unit}}
4545
#- xvfb-maybe node_modules/.bin/karma start test/unit/karma.conf.js

0 commit comments

Comments
 (0)