This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
55 lines (52 loc) · 1.84 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: node_js
node_js:
- 10.17.0
python:
- 3.6.7
env:
matrix:
secure: gSb+5hzjOEsBsrJRIb8x2pQF/Y/yB4b1d1OGW2BkXCLECwFfk/UCCpE1LIWLeK2XJpuF9H/yewZFc2lrgYsM1NI1Wn33BcOFWuvCq3uyLFlpdiB5jKNXvLYA6xmudwbvWPh9AjubN2IJplatF2EAMyf1JjgOX+M3lEWOGqiaOYMLjP+8PphInhbscMDWJb2ni601Q+iBDtEkhwLPWVIzz0gY3EyXta0YbtbiWvjhsFE9NYf2MuB/s9xb3UK09jq2bBtD4M80+ppzYUTmq8s3GzTPqpPm0vww67xkMUPA4tkgygFNwYYETeytLL9bdyDY8PitJfGn26qoZTPSy6z2TOJEmEVhf077Tk25FrJcIjFltQ3Nne/NYczTwFqUrrXNoLPgplm4zMy3LZZKweL11juMmbXmyTZ3fywGqJ8RwKPEKO3Qeuv0xtsPiAc1qmh6bC5Y7E65G5rDj77ei+7BFc12nSjqBCa0rLx1iC47fzeGTwWKCIb6A6tJbr6mRVkRbcP7M9rQ/UMWYskrFLgGbvrgHX0Hn28uHS76CNBAwvh0eQk3iG2iOIZ9GVC32Lh66daLL9noDhTiDGUdmp6q7ofG8jtNDPvnqF6CXgUBgpE8GGDd6paTmHT4rIiKLUI42sQwOzfIhwt7exckspqyZvvZbnkYg/Yk7bR8vTHLZ0M=
cache:
directories:
- "~/.npm"
- ".jest"
before_install:
- npm install -g npm@latest
- npm install -g expo-cli
stages:
- build
- test
#- name: deploy staging
# if: branch = develop
#- name: deploy production
# if: branch = master
jobs:
include:
- stage: test
before_install:
- cd ./backend
- pip3 install --upgrade pip
- pip3 install -r requirements.txt
- pip3 install pytest
- pip3 install pytest-timeout
- pip3 install codecov
script:
- cd frontend
- npm ci
- npx jest --ci --passWithNoTests
- cd ../backend
- python3 -m pytest --timeout 600 test/test_SQLQueue.py
after_success:
- codecov # submit coverage
# - stage: deploy staging
# script:
# - cd frontend
# - npm ci
# - npx expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD
# - npx expo publish --non-interactive --release-channel staging
# - stage: deploy production
# script:
# - cd frontend
# - npm ci
# - npx expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD
# - npx expo publish --non-interactive --release-channel production