-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 2.78 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
sudo: required
dist: trusty
language: node_js
node_js: 8
cache:
yarn: true
directories:
- $HOME/haxe
services:
- mysql
env:
global:
- secure: Lh8qR/5hTThKoslDk9G7VO7sWRVREuslEM3qVvex4lEM0Jorr0zTy5OkdL8cyiUmKxLiJkbsOIxU/nTYDVjyH0rDb1Q2bl9MsU/nPtP9FQQeNMYy5xgJFML/NfRKtKMMDV3I1b6ts512Cz9vhN4BMwkl1I0FJgZVAf5t89pS4T/kcrGzUFdvR1tWjiJNkoDll4qcmQH7Jj6+6eU6zHxyYwqrVqG1cn46YDOYn+i6zKPpJiP6GVOMWYi8BufrPMLQ47pT/eft1VZhTwjv9dFErrfAaC9GpCiQOAw5z3p6qLL16GjkOGJo+1HewrqOZ0S8OUyVSgl5pYs0c6/ddps7ywpWHRChoQRtJooh2Nqx0tZz9z+I3nUgPMc2AX8jb7bh/0jUPWTQMO7kYnlYEJskBkbh0nxmQ6+R5bFi3Hy9m1xiPz8OJEVxfXqVsE5hgdGrLMTPDSwYCjJ+xirXT8zIV3/oriuiHcuvUH3nYVH5/wnVTdiTAyr4GpIPpOb1jZBhmrJ9DgyAb4wVHY1nHtycWTppS0kh7v9uC4kqOvtVgZaEDKjyq9YaFUwDwxnIHV1iBMaqfXnW2wM9OZoqsbCkGQDwfpkAcy+i+Bx1hu2+t/KuCE0YGEjGG+OSBn3Ilp0tL5WhjbW7HjD5pmTFPQWPOnwBp+jLkKgsSkKaPjOs3PM= # DATABASE_URL
- secure: DWsKPuKA3QvUNFRwFUjIRWTk3rOk6vgLCy9NNcRGIh74x07yv359IK/HChAnOhPESJIIi+8bG7DNCH3vlw2FaNSqvmm0KODZkZaQBV4JqbLe4CQjhmkI4mSK5tEWLJzUTT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Q9Vzyf4nEJVJOkMooPCmYSBlq9ZEk7c9mm86tv00rf/JLawWtkC1tmFK5lGPoWQi9muB1rn0I+yoklgQQTRm8W4PgjAohV9utjvaaNgap8MI5dqMm8tMv8wLKiLU0ku7l/Gs9CEUcd1bnWXN1CrYzrJbkyos1IerXjZg2/LxBiT78V2Q= # AWS_SECRET_ACCESS_KEY
branches:
only:
- master
before_install:
- mysql -e 'CREATE DATABASE lix_tests;'
install:
- yarn global add lix serverless
- pushd bin/tests && yarn && popd
- pushd bin/server && yarn && popd
- pushd bin/pretoken && yarn && popd
- lix download
script:
- haxe tests.hxml && node bin/tests/tests.js
- haxe build-prod.hxml
after_success:
- cd bin/server
- serverless config credentials --provider aws --key $AWS_ACCESS_KEY_ID --secret $AWS_SECRET_ACCESS_KEY --profile lix
- serverless deploy --stage production