-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy path.travis.yml
52 lines (43 loc) · 1.22 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
47
48
49
50
51
52
language: c
dist: trusty
env:
- ELECTRON_CACHE=$HOME/.electron
matrix:
include:
- os: osx
osx_image: xcode8.3
sudo: false
- os: linux
sudo: false
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
cache:
directories:
- node_modules
- $HOME/.electron
- $HOME/.cache
addons:
apt:
packages:
- bsdtar
- g++-multilib
- gcc-multilib
- libgnome-keyring-dev
- libsecret-1-dev
- icnsutils
- rpm
- xz-utils
before_install:
- rm -rf ~/.nvm
- mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v2.2.1/git-lfs-$([ "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-2.2.1.tar.gz | tar -xz -C /tmp/git-lfs --strip-components 1 && /tmp/git-lfs/git-lfs pull && /tmp/git-lfs/git-lfs clone https://github.com/creationix/nvm.git ~/.nvm
- source ~/.nvm/nvm.sh && nvm install 8
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn install
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn run build:travis-mac; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then yarn run build:travis-linux; fi
branches:
only:
- master