-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
40 lines (37 loc) · 1007 Bytes
/
.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
39
40
jobs:
include:
- stage: test
language: python
python:
- 3.6
before_install:
- cd Platon/backend
install:
- pip install -r requirements.txt
script:
- python test.py
- stage: test
language: node_js
node_js:
- 12.10.0
before_install:
- cd Platon/frontend
install:
- npm cache clean --force
- npm install
- CI=false npm run build
- stage: deploy
if: branch = release AND type != pull_request
language: python
addons:
ssh_known_hosts: 18.185.75.161
python:
- 3.6
before_script:
- openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
script: ssh [email protected] 'bash ~/deploy.sh'
notifications:
email: false