This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
52 lines (52 loc) · 3.39 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
dist: trusty
addons:
postgresql: "9.6"
language: go
services:
- postgresql
go:
- "1.12"
before_script:
- psql -c 'create database marlow_test;' -U postgres
install:
- go get -v github.com/mattn/go-sqlite3
- go install -v -x github.com/mattn/go-sqlite3
script:
- make
- make test
- make test-example
- make example
- pushd ./examples/library && ./library import ./data/demo-import.json && popd
after_success:
- bash <(curl -s https://codecov.io/bash) -f ./coverage.txt
before_deploy:
- mkdir -p ./dist/s3-commit/$TRAVIS_COMMIT
- mkdir -p ./dist/s3-latest/latest
- cp ./dist/coverage/library.coverage.txt ./dist/s3-commit/$TRAVIS_COMMIT
- cp ./dist/coverage/library.coverage.html ./dist/s3-commit/$TRAVIS_COMMIT
- cp ./dist/coverage/library.coverage.txt ./dist/s3-latest/latest
- cp ./dist/coverage/library.coverage.html ./dist/s3-latest/latest
env:
global:
- secure: wJZxvUVrF+CNYQihaZ1ZLloaGN8/7GjZJ7vMUyXQmBwIwMj/bOCxGHBNglX8+o7XqJTVkGSIue0Vk0wic+fy1we8rTtUAfB7RdUyK0EBbOt0GBuziuk03V/cFOW7JodKC/Y3VAiLtOCgpw51KtT2ihg34LjVU3fSRsqIZdg7sskR537rfaZpVlyGVj6ZpD15Tiit4lFbBO9XvjjWi04sS9Q6+z3xMp6kpKfIa5vH1htQOXcsmgwWbT5VcBMsqRW4oDKolt9LbJ1MSrKEmW6/v+mAxCtoyWFPnuqU6/EtQjoTv8S5yu4MAwd6h1N3gS9jvWSW6Vfw8kjzO31fK8ZvMaGqbvERFl9jkHM6WutkklXDEX4YB+vGpxTmP+YjMGXphe2Sw4C9ILBqo49Co7Dz5j16TL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qrCd7VsaCJ518rAX7FGaAjoLMpGlJTrW+BZLAy0vXKcKFGrIEA7JCtcWsA8D4hzVeTclbxW9ss+m1yuPI8E5KFdBtXYoKnrlXAZDFiUT3dWuZnteQM0Qdb+MPYlGfs1uMF0zx14ZlKbBNzr0c9e7NG7vX6tmdYj5dH4CP2okV1xUcEluO//cWiiW7m7jYkBlUcr/7Azk6f93U+XyQIrl2yTq72y59XjgPu4GrZ5JX53y7V5CSAoeXBbxPaTCyX3nDQwDaOI1km+vyCD77rxxDX4ig9QsJ2CI0qoIWZb2lBy3tkZaqV7sp+FTIJ5dPSdxbFsSCDa6PKiGS5SY3BYEpPsh3RBVUHApeSd4+H63hjAIms1mNZisFISx5IE1bBHYsF68Hb6M6dVLmgEbxNcwoBffmwzJC2w9f5Qa8Wj6Ru4tg9W30ln/1gd5/LXilLrlrOvd0QYcTUdQiuuSqJzek/UizNFdZxX1pZJPmw8lIa5TnpDWY+CSFxHLjYn/r8c04jks+v/WnI9vVgzpmZXigfAw5RknXkbZ2c045RFmlsmyIUGoWWxwD+s=
deploy:
- provider: s3
access_key_id: "$AWS_ACCESS_KEY_ID"
secret_access_key: "$AWS_SECRET_ACCESS_KEY"
bucket: "coverage.marlow.sizethree.cc"
skip_cleanup: true
acl: public_read
local_dir: "./dist/s3-commit"
on:
all_branches: true
- provider: s3
access_key_id: "$AWS_ACCESS_KEY_ID"
secret_access_key: "$AWS_SECRET_ACCESS_KEY"
bucket: "coverage.marlow.sizethree.cc"
skip_cleanup: true
acl: public_read
local_dir: "./dist/s3-latest"
on:
branch: master