-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
55 lines (46 loc) · 1.39 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
53
54
55
language: rust
rust: nightly
sudo: false
notifications:
email:
on_success: never
on_failure: change
os:
- linux
- osx
- windows
matrix:
allow_failures:
# Windows currently fails whenever there are secrets set in Travis
# See: https://travis-ci.community/t/windows-instances-hanging-before-install/250/2?u=acheronfail
- os: windows
cache:
yarn: true
cargo: true
directories:
- node_modules
- $HOME/.cache/electron
addons:
apt:
packages:
- fakeroot
- rpm
homebrew:
packages:
- yarn
before_install:
# Use NVS for Windows builds (easier to setup than NVM at the moment).
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then git clone --branch "v1.5.2" --depth 1 https://github.com/jasongin/nvs ~/.nvs; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then source ~/.nvs/nvs.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then nvs add lts/carbon; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then nvs use lts/carbon; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install yarn; export PATH="/c/Program Files (x86)/Yarn/bin:$PATH"; fi
# Use NVM on linux and macos (comes pre-installed).
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then nvm install lts/carbon; fi
script:
- yarn
- yarn lint
- yarn core:build
- if [ -n "$TRAVIS_TAG" ]; then yarn make; fi
after_success:
- if [ -n "$TRAVIS_TAG" ]; then yarn run publish; fi