-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
55 lines (44 loc) · 1.07 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: node_js
sudo: required
notifications:
slack:
on_success: always
on_failure: never
node_js:
- '12.18.0'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
branches:
only:
- master
env:
global:
- LOGS_DIR=/tmp/nyaf-build/logs
- ARCH=linux-x64
# GITHUB_TOKEN_NYAF
- secure: "fq/U7VDMWO8O8SnAQkdbkoSe2X92PVqg4d044HmRYVmcf6YbO48+xeGJ8yOk0pCBwl3ISO4Q2ot0x546kxfiYBuHkZetlngZxZCtQiFT9kyId8ZKcYdXaIW9OVdw3Gh3tQyUwDucfkVhqcs52D6NZjyE2aWZ4/d1V4kWRO/LMgo="
matrix:
# Order: a slower build first, so that we don't occupy an idle travis worker waiting for others to complete.
- MODE=build
- MODE=lint
matrix:
fast_finish: true
allow_failures:
- env: "MODE=lint"
install:
- npm install
before_script:
- chmod +x ./tools/travis/ci/build-and-test.sh
- mkdir -p $LOGS_DIR
script:
- ./tools/travis/ci/build-and-test.sh
after_success:
- ./tools/travis/ci/after-success.sh
cache:
directories:
- node_modules
- $HOME/.pub-cache