mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-05 05:38:24 +08:00
24 lines
1.1 KiB
YAML
24 lines
1.1 KiB
YAML
language: node_js
|
|
node_js: 5
|
|
cache:
|
|
bundler: true
|
|
directories:
|
|
- node_modules
|
|
- travis_phantomjs
|
|
before_install:
|
|
- export TRAVIS_COMMIT_MSG="[deploy] $(git log --format='%h - %B' --no-merges -n 1)"
|
|
- export TRAVIS_COMMIT_USER="$(git log --no-merges -n 1 --format=%an)"
|
|
- export TRAVIS_COMMIT_EMAIL="$(git log --no-merges -n 1 --format=%ae)"
|
|
- export PHANTOMJS_VERSION=2.1.1
|
|
- export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH
|
|
- if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs;
|
|
mkdir -p $PWD/travis_phantomjs; fi
|
|
- if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
|
|
-O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi
|
|
- if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
|
|
-C $PWD/travis_phantomjs; fi
|
|
- phantomjs --version
|
|
after_success:
|
|
- sh build/deploy-ci.sh
|
|
- cat ./test/unit/coverage/lcov.info | ./node_modules/.bin/coveralls
|