summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2019-01-17 21:15:37 +0900
committerGitHub <noreply@github.com>2019-01-17 21:15:37 +0900
commit27ceae740618e8907be96b464356b910d8eb5b63 (patch)
treead91dbeef8a6e4edfa41d8bcb7f4bfdb028b17ab
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadmisskey-27ceae740618e8907be96b464356b910d8eb5b63.tar.gz
misskey-27ceae740618e8907be96b464356b910d8eb5b63.tar.bz2
misskey-27ceae740618e8907be96b464356b910d8eb5b63.zip
Better configuration of CircleCI (#3908)
-rw-r--r--.circleci/config.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5b485768fe..54dff6c3e4 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -54,6 +54,8 @@ jobs:
- run:
name: Build
command: |
+ node-gyp configure
+ node-gyp build
npm run build || (echo -e '\033[0;34mRebuild modules\033[0;39m' && ls -1A node_modules | grep '^[^@]' | xargs npm rebuild && ls -1A node_modules | grep '^@' | xargs -I%1 sh -c 'ls -1A node_modules/'%1' | xargs -P0 -I%2 npm rebuild node_modules/'%1'/%2' && npm run build)
ls -1ARl node_modules > ls
- save_cache:
@@ -88,7 +90,7 @@ jobs:
- run:
name: Test
command: |
- npm run test || (npm rebuild && npm run test) || ((node-gyp configure && node-gyp build && npm run build || (echo -e '\033[0;34mRebuild modules\033[0;39m' && ls -1A node_modules | grep '^[^@]' | xargs npm rebuild && ls -1A node_modules | grep '^@' | xargs -I%1 sh -c 'ls -1A node_modules/'%1' | xargs -P0 -I%2 npm rebuild node_modules/'%1'/%2' && npm run build)) && npm run test)
+ npm run test
ls -1ARl node_modules > ls
- save_cache:
name: Cache npm packages