-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (45 loc) · 1.07 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
language: python
python:
- "3.7"
- "3.8"
- "3.9"
branches:
# avoid duplicate jobs on updated PRs
only:
- main
cache:
pip: true
directories:
- "$HOME/.cache/"
- "$HOME/virtualenv/"
- node_modules
before_install:
- make init-stockfish-linux
- mkdir chess_blunders/app/api/bin
- cp bin/stockfish chess_blunders/app/api/bin
- export PATH="`pwd`/chess_blunders/app/api/bin:${PATH}"
- export CHESS_BLUNDERS_ENGINE="stockfish"
- which stockfish || (echo $PATH && false)
- nvm install 15
- npm config set cache "$HOME/.cache/npm"
- mkdir $HOME/.aws
- touch ~/.aws/credentials
install:
- make init
script:
- make ci-integration
after_success:
- bash <(curl -s https://codecov.io/bash) -y .ci/codecov.yml
before_deploy:
- echo "API_URL=$API_URL" > chess_blunders/app/web/.env.production
- npm install chess_blunders/app/web
deploy:
- provider: script
script: make deploy-api-prod
- provider: script
script: make deploy-web-prod
skip_cleanup: true
on:
branch: main
python: "3.8"
condition: $TRAVIS_PULL_REQUEST = "false"