Run tests on travis on pull requests.

pull/99/head
Mikunj 6 years ago
parent 18d6683f57
commit 5aaf4818ad

@ -1,20 +1,23 @@
language: node_js language: node_js
cache: yarn
node_js: node_js:
- '8.9.3' - '8.9.3'
os: os:
- linux - linux
dist: trusty dist: trusty
before_install:
- whoami
- node -v
- yarn -v
install: install:
- apt-get update && apt-get install -y libgtk2.0-0 libgtk-3-0 libgconf-2-4 libasound2 libxtst6 libxss1 libnss3 xvfb hunspell-en-us
- yarn install --frozen-lockfile - yarn install --frozen-lockfile
script: script:
- yarn generate - yarn generate
- yarn lint - Xvfb -ac -screen scrn 1280x2000x24 :9.0 &
- yarn lint-deps - export DISPLAY=:9.0
- yarn test-node - export LC_ALL=en_US
- yarn nsp check - yarn test
- yarn prepare-beta-build
- $(yarn bin)/build --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion='$TRAVIS_BUILD_NUMBER' --publish=never
- ./travis.sh
env: env:
global: global:
- SIGNAL_ENV: production - SIGNAL_ENV: production

Loading…
Cancel
Save