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
cache: yarn
node_js:
- '8.9.3'
os:
- linux
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:
- yarn install --frozen-lockfile
script:
- yarn generate
- yarn lint
- yarn lint-deps
- yarn test-node
- yarn nsp check
- yarn prepare-beta-build
- $(yarn bin)/build --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion='$TRAVIS_BUILD_NUMBER' --publish=never
- ./travis.sh
- Xvfb -ac -screen scrn 1280x2000x24 :9.0 &
- export DISPLAY=:9.0
- export LC_ALL=en_US
- yarn test
env:
global:
- SIGNAL_ENV: production

Loading…
Cancel
Save