-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (38 loc) · 1.22 KB
/
.travis.yml
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
language: node_js
node_js:
- lts/*
cache: npm
script:
- npm run build
deploy:
provider: pages:git
edge: true
local_dir: build
deploy_key: deploy_key
cleanup: false
on:
all_branches: true
repo: ModelOriented/Arena
before_install:
- sudo add-apt-repository -y ppa:deadsnakes/ppa
- sudo apt-get update
- sudo apt-get -y install python3.8 python3.8-distutils
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && sudo python3.8 get-pip.py && rm -f get-pip.py
- sudo rm -rf /usr/bin/python3 && sudo ln -s /usr/bin/python3.8 /usr/bin/python3
- python3 --version
before_deploy:
- openssl aes-256-cbc -K $encrypted_d496dfbd0e99_key -iv $encrypted_d496dfbd0e99_iv
-in deploy_key.enc -out ./deploy_key -d
- chmod 600 ./deploy_key
- ssh -i ./deploy_key -T [email protected] 2>&1 | grep successful > /dev/null
- echo 'ssh -i ./deploy_key "$@"' > use_ssh.sh
- chmod +x use_ssh.sh
- export GIT_SSH="./use_ssh.sh"
- git clone --quiet --branch="gh-pages" --depth=1 "[email protected]:ModelOriented/Arena.git" repo
- mkdir -p repo/branch build
- cp -R repo/branch build/
- rm -rf build/branch/$TRAVIS_BRANCH
- cp -R dist build/branch/$TRAVIS_BRANCH
- cp -R build/branch/master/* build/
- mkdir -p build/branch/docs
- cp -R build/branch/docs build/