-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
25 lines (25 loc) · 939 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
language: node_js
cache:
npm: false
services:
- mongodb
before_script:
- sleep 15
- mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
script:
- npm run lint
- npm run test
- npm run coverage
before_install:
- openssl aes-256-cbc -K $encrypted_c589161bbc05_key -iv $encrypted_c589161bbc05_iv
-in .env.test.enc -out .env.test -d
- openssl aes-256-cbc -K $encrypted_917011c94161_key -iv $encrypted_917011c94161_iv
-in didi-qa-00-firebase-adminsdk-9m8e9-db05c307cb.json.enc -out ./services/didi-qa-00-firebase-adminsdk-9m8e9-db05c307cb.json
-d
- openssl aes-256-cbc -K $encrypted_ba0d7aaa5a42_key -iv $encrypted_ba0d7aaa5a42_iv
-in travis_github_key.enc -out /home/travis/.ssh/id_rsa -d
- chmod 600 /home/travis/.ssh/id_rsa
- eval "$(ssh-agent -s)"
- ssh-add /home/travis/.ssh/id_rsa
- git config --global user.email "[email protected]"
- git config --global user.name "didi-ssi-travis-bot"