forked from mirror/misskey
42 lines
951 B
YAML
42 lines
951 B
YAML
# travis file
|
|
# https://docs.travis-ci.com/user/customizing-the-build
|
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
- 7.7.3
|
|
|
|
env:
|
|
- CXX=g++-4.8 NODE_ENV=production
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-4.8
|
|
- graphicsmagick
|
|
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
|
|
services:
|
|
- mongodb
|
|
- redis-server
|
|
|
|
before_script:
|
|
# Travisはproduction環境なので(10行目により)、
|
|
# npm install しただけでは devDependencies はインストールされないので、
|
|
# --only=dev オプションを付けてそれらもインストールされるようにする:
|
|
- npm install --only=dev
|
|
|
|
- mkdir ./.config
|
|
- cp ./.travis/default.yml ./.config
|
|
- cp ./.travis/test.yml ./.config
|
|
- npm run build
|
|
|
|
after_success:
|
|
- chmod u+x ./.travis/release.sh
|
|
- if [ $TRAVIS_BRANCH = "master" ] && [ $TRAVIS_PULL_REQUEST = "false" ]; then ./.travis/release.sh; else echo "Skipping releasing task"; fi
|