forked from electron-userland/electron-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·46 lines (37 loc) · 1.59 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
matrix:
include:
- os: osx
env: TEST_FILES=BuildTest,extraMetadataTest,globTest,filesTest,ignoreTest,linux.* NODE_VERSION=6 PUBLISH_TO_NPM=true
- os: osx
env: TEST_FILES=windows.*,mac.* NODE_VERSION=7
- os: osx
env: TEST_FILES=mac.* NODE_VERSION=6
language: c
cache:
directories:
- node_modules
- packages/electron-builder/node_modules
- packages/electron-builder-util/node_modules
- $HOME/.electron
- /tmp/jest-electron-builder-tests
before_install:
- curl -L https://dl.bintray.com/develar/bin/7za -o /tmp/7za
- chmod +x /tmp/7za
- curl -L https://dl.bintray.com/develar/bin/wine.7z -o /tmp/wine.7z
- /tmp/7za x -o/usr/local/Cellar -y /tmp/wine.7z
- brew link --overwrite fontconfig gd gnutls jasper libgphoto2 libicns libtasn1 libusb libusb-compat little-cms2 nettle openssl sane-backends webp wine git-lfs gnu-tar dpkg xz
- brew install freetype graphicsmagick
- git-lfs pull
install:
- nvm install $NODE_VERSION
- nvm use --delete-prefix $NODE_VERSION
- ln -sf $PWD/test/vendor/yarn.js /usr/local/bin/yarn
- yarn --link-duplicates --pure-lockfile
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && "$AUTO_PUBLISH" != "false" && "$TRAVIS_TAG" == "" && "$PUBLISH_TO_NPM" == "true" ]]; then yarn add @develar/semantic-release@next --dev ; fi
script:
- yarn test
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && "$AUTO_PUBLISH" != "false" && "$TRAVIS_TAG" == "" && "$PUBLISH_TO_NPM" == "true" ]]; then npm run semantic-release ; fi
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"