-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.yml
More file actions
63 lines (56 loc) · 2.21 KB
/
config.yml
File metadata and controls
63 lines (56 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: 2
jobs:
build:
docker:
- image: cimg/node:18.16.0
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm install
- run: sudo apt-get update -yqq
- run: sudo apt-get install -yqq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
- run: |
# 全てのlanugage-packをインストールする
# language-pack-ja単体だと何故か失敗する…
sudo apt -qqy --no-install-recommends install -y locales-all &&
sudo locale-gen ja_JP.UTF-8 &&
sudo update-locale LANG=ja_JP.UTF-8 &&
sudo update-locale LANGUAGE="ja_JP:ja"
- run: |
# 日本語フォントをインストールする
sudo apt -qqy --no-install-recommends install -y fonts-takao-gothic fonts-takao-mincho &&
sudo dpkg-reconfigure --frontend noninteractive locales &&
sudo fc-cache -fv
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# run tests!
- run: npm test
- deploy:
name: Start master deploy
command: |
git config --global user.name "CircleCI"
git config --global user.email "circleci@gh-pages.com"
git add --all
git commit -m "Circle CI updates files."
git pull origin master
git push origin master
workflows:
version: 2
nightly:
triggers:
- schedule:
cron: "0 19 * * *"
filters:
branches:
only:
- master
jobs:
- build