-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (40 loc) · 933 Bytes
/
.travis.yml
File metadata and controls
40 lines (40 loc) · 933 Bytes
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
dist: trusty
sudo: required
addons:
ssh_known_hosts:
- github.com
apt:
packages:
- nasm
env:
global:
- TZ=Asia/Shanghai
language: node_js
node_js: node
branches:
only:
- source
git:
depth: false
submodules: false
cache:
apt: true
directories:
- node_modules
before_install:
- openssl aes-256-cbc -K $encrypted_245a25db3475_key -iv $encrypted_245a25db3475_iv
-in id_rsa_travis.enc -out deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 ./deploy_key
- ssh-add ./deploy_key
- git config --global user.name "travis-ci"
- git config --global user.email "travis-ci@tinfinite.com"
- git ls-files -z | while read -d '' path; do touch -d "$(git log -1 --format="@%ct"
"$path")" "$path"; done
- git clone --branch=source --single-branch git@github.com:selfteaching-learning-notes/selfteaching-learning-notes.github.io.git
.deploy_git
install: npm install
before_script:
script:
- hexo clean
- hexo g -d