forked from atom/node-keytar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 1.13 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
language: node_js
sudo: required
dist: trusty
os:
- linux
- osx
node_js: 12
env:
- CC=clang CXX=clang++ npm_config_clang=1
notifications:
email: false
git:
depth: 10
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
services:
- docker
cache:
directories:
- node_modules
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- xvfb
- gnome-keyring
- libsecret-1-dev
- python-gnomekeyring
before_script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
dbus-launch /usr/bin/python -c \
"import gnomekeyring;gnomekeyring.create_sync('login', '');"
fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then xvfb-run ./script/cibuild; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm test; fi
- npm run prebuild-node
- npm run prebuild-electron
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -t node-keytar/i386 docker/i386 && docker run --rm -v ${PWD}:/project node-keytar/i386 /bin/bash -c "cd /project && npm run prebuild-node-ia32 && npm run prebuild-electron-ia32"; fi
- if [[ -n "$TRAVIS_TAG" ]]; then npm run upload; fi