Merge pull request #99 from Mikunj/travis-testing

Run tests on travis on pull requests.
pull/102/head
sachaaaaa 7 years ago committed by GitHub
commit b5589d4969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
- sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgconf-2-4 libasound2 libxtst6 libxss1 libnss3 xvfb hunspell-en-us
install: install:
- 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