Commit 67ff8892 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix CI

parent ebfc47da
language: node_js language: node_js
node_js: node node_js: node
os: os:
- linux - linux
- osx - osx
dist: trusty dist: trusty
sudo: required sudo: required
env: env:
npm_config_target: '$(npm show electron version)' npm_config_target: $(npm show electron version)
npm_config_arch: x64 npm_config_arch: x64
npm_config_target_arch: x64 npm_config_target_arch: x64
npm_config_disturl: https://atom.io/download/atom-shell npm_config_disturl: https://atom.io/download/atom-shell
npm_config_runtime: electron npm_config_runtime: electron
npm_config_build_from_source: true npm_config_build_from_source: true
global:
secure: KsebO9wNxM2RfUGg6Y0E4hRdXzQLNe1fdB1AOV5U1LddLGZYTYvsknPL6oyjOV3vY5ed7wueErt1GCDjEZJMdox0rMUEZ9HH8umwUoJi2uS6LoaU31yWNCCbPbpdtJw3rohzNvEtxd1Y01U5msKPuUd4M5mt/RKlPPPR/L5H178=
addons: addons:
apt: apt:
packages: packages:
- icnsutils - icnsutils
- graphicsmagick - graphicsmagick
- xz-utils - xz-utils
cache: cache:
directories: directories:
- node_modules - node_modules
- $HOME/.electron - $HOME/.electron
- $HOME/.cache - $HOME/.cache
before_install: before_install:
- env - env
- openssl aes-256-cbc -K $encrypted_9f35b7f09ebe_key -iv $encrypted_9f35b7f09ebe_iv -in ssh-key.enc -out $HOME/.ssh/id_ecdsa -d - openssl aes-256-cbc -K $encrypted_9f35b7f09ebe_key -iv $encrypted_9f35b7f09ebe_iv
- chmod 600 $HOME/.ssh/id_ecdsa -in ssh-key.enc -out $HOME/.ssh/id_ecdsa -d
- chmod 600 $HOME/.ssh/id_ecdsa
install: install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p bin; curl --location --retry 5 https://github.com/aria2/aria2/releases/download/release-1.29.0/aria2-1.29.0-osx-darwin.tar.bz2 | tar --strip-components=2 -C bin -jxf - aria2-1.29.0/bin/aria2c; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p bin; curl --location --retry
- npm install 5 https://github.com/aria2/aria2/releases/download/release-1.29.0/aria2-1.29.0-osx-darwin.tar.bz2
- npm prune | tar --strip-components=2 -C bin -jxf - aria2-1.29.0/bin/aria2c; fi
- npm install
- npm prune
script: script:
- npm run dist - npm run dist
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
"lint": "tslint ./app/*.ts -t verbose", "lint": "tslint ./app/*.ts -t verbose",
"pack": "tsc && build --dir", "pack": "tsc && build --dir",
"dist": "tsc && build", "dist": "tsc && build",
"release": "tsc && build",
"build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js", "build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js",
"tsc": "tsc", "tsc": "tsc",
"i18n": "ng-xi18n && sed -i.bak 's/source-language=\"en\"/source-language=\"zh-CN\"/' messages.xlf", "i18n": "ng-xi18n && sed -i.bak 's/source-language=\"en\"/source-language=\"zh-CN\"/' messages.xlf",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment