Skip to content

Commit

Permalink
Replaced npm with yarn in travis.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed May 11, 2018
1 parent a01c48e commit f7a91b6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Expand Up @@ -6,6 +6,7 @@ os:
- linux
- osx
node_js:
- 6
- 9
env:
- DEBUG=electron-forge:*
Expand All @@ -23,17 +24,17 @@ before_install:
- export DISPLAY=:99.0
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
before_script:
- npm install -g @angular/cli
- npm install -g karma
- npm install -g electron-forge
- npm install
- ng build
- yarn global add @angular/cli
- yarn global add karma
- yarn global add electron-forge
- yarn
- yarn build
script:
- ng lint
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then karma start karma.conf.js --single-run; fi
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then ng e2e; fi
before_deploy:
- if [ ! -z "$TRAVIS_TAG" ]; then npm run build-electron; fi
- if [ ! -z "$TRAVIS_TAG" ]; then yarn build-electron; fi
deploy:
- provider: releases
api_key:
Expand Down

0 comments on commit f7a91b6

Please sign in to comment.