chore: add travis configuration
This commit is contained in:
Родитель
089b466cbb
Коммит
e99c7d2068
|
@ -0,0 +1,39 @@
|
|||
sudo: true
|
||||
dist: trusty
|
||||
language: node_js
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- google-chrome
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- google-chrome-stable
|
||||
- g++-4.8
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
notifications:
|
||||
email: false
|
||||
node_js:
|
||||
- '4'
|
||||
env:
|
||||
- CXX=g++-4.8
|
||||
before_install:
|
||||
- npm i -g npm@^3.8.0
|
||||
before_script:
|
||||
- "npm prune"
|
||||
- "npm update"
|
||||
- "export CHROME_BIN=/usr/bin/google-chrome"
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
- "sleep 3" # give xvfb some time to start
|
||||
script:
|
||||
- npm run lint
|
||||
- npm run test
|
||||
- npm run build-package
|
||||
- npm run build-cdn
|
||||
after_success:
|
||||
# - npm run semantic-release
|
||||
branches:
|
||||
except:
|
||||
- "/^v\\d+\\.\\d+\\.\\d+$/"
|
Загрузка…
Ссылка в новой задаче