forked from cmdmnt/commandment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (36 loc) · 1.77 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
matrix:
include:
- language: python
python: 3.6
install:
- pip install pipenv
- pipenv install --system
script:
- pytest -v -m "not depsim and not dep and not vppsim and not vpp" tests
before_deploy:
- mkdir $TRAVIS_BUILD_DIR/build
- cd $TRAVIS_BUILD_DIR && tar cfz build/backend.tar.gz commandment Pipfile Pipfile.lock settings.cfg.example
- cd $TRAVIS_BUILD_DIR && tar cfz build/virtualenv.tar.gz $(pipenv --venv)
- language: node_js
node_js: 7
install:
- cd ui && yarn install
env: NODE_ENV=production
script: "./node_modules/.bin/webpack"
before_deploy:
- mkdir $TRAVIS_BUILD_DIR/build
- cd $TRAVIS_BUILD_DIR && tar cfz build/static.tar.gz commandment/static
cache:
directories:
- ui/node_modules
- "$HOME/.cache/pip"
- "$HOME/.cache/yarn"
- "$HOME/virtualenv" # pipenv will install here
deploy:
provider: s3
access_key_id: AKIAJ2UQM6XSA2LT275A
bucket: com.github.mosen.commandment.static
skip_cleanup: true
secret_access_key:
secure: QMKUT0l2IY2Dy3XUReO+v4jOuBwwUMOMm8+DtTdWna3Jvp2gjIwkGN1D5fy173KBj50IfAXl6cLPauUvlBoE0/DjLZc7i0EqR+AAcRYnVniZs8Zy5RBEZ17BjpEyqP+5AaWzNpy66E/T33mUBnaCSvx0SyUv1cEfWX+gm0eHD+OfX1vITZsjWcRBR6fvn+sMNi/cb5gAjdAI0eDcDaSdq0/8kE5D28fXDpWAUstcJMfOwujiAsxo3WLii+4cKN9YuXqTeCO+H14KaRBc+N5QwDa1oVZIp1bRTUIDimjx7HhM8yqIOjCySpona5rLPAIojqP0nvbzYnefKw3tWLCe35pTn0b1/ElXSYTT0v4/tZjpfqm4QAv5O2RO9/7A8uICSwdkUwVZo0lrZ8P5nKWuYr94mRVxqMJWJAxVb2GPqWytUzQxaq8DXli2Fz2pgxJGRHE2QEVvYV0kfh8/v9y7s/kKyGGwN9AhHTLQVw4Oj0JoZOBxJbfOSuowV9vtzR+wM2ZbYqUfKsVhxnZeHmv5zaUNWDGrf/+Cx8iZO0gqfc/vsM4BS4zuM5PjrPaEYaObrlDNKrzDMpLgBF0mKPpoPAlFRkidmO0aVXX47ifmHxSrlWEH4WhuC91CSIdj9vgEeIbzacLow0hJUkqaWOMqH8Zp3zpE50b/EEJTtOmG/Ec=
local_dir: build