generated from cs130-w21/template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
55 lines (49 loc) · 1.24 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
# Install Dependencies
install:
# Testing -> More Testing -> Deployment
jobs:
include:
# TODO: backend testing
- stage: "Testing"
if: True
name: "Backend Tests (Python)"
script:
- python -c "print('Hi from Python!')"
- cd backend
- python -m py_compile *.py
- python -c "print('Backend syntax correct')"
#- python ./test.py
# TODO: frontend testing
- stage: "Testing"
if: False
name: "Frontend Tests (JS)"
language: node_js
node_js: 12
script:
- node -e "console.log('Hi from NodeJS!')"
- cd frontend
- yarn test
# TODO: ???
- stage: "Even More Testing"
if: False
name: "Other Tests"
script:
- echo "Running More Tests"
# does not deploy because condition is false
# TODO: Setup AWS
- stage: "Deploying"
if: False
script: skip
deploy:
if: branch = master
provider: s3
access_key_id:
secure: "YOUR ENCRYPTED AWS ACCESS KEY"
secret_access_key:
secure: "YOUR ENCRYPTED AWS SECRET KEY"
bucket: "S3 Bucket"
skip_cleanup: true
after_success:
- echo 'Build Passed'
after_failure:
- echo 'f'