forked from fhirbase/fhirbase-plv8
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
70 lines (70 loc) · 5.97 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: node_js
sudo: required
services:
- docker
node_js:
- '6'
addons:
apt:
packages:
- python-pip
env:
global:
- secure: OhbEMmdvXwMoNsQCzWRIQsYc6LwcRAARjAoVv150LRTDB4s/FPo/67DQuUkcMJPp5+HyGh2/9giNArmn7NcMiXHtiUZKQKRkt758Ga9IdYidHJrmUI3wZKJns6W7SeCr4GSsd7cVcDo/ubFQQGZK2yIlRRF3zmWnEcPt9uLIlyJlrBu5DKUev65n/AdUzaqGf48efavz97A9DCVxwuE44jGp5Bqjoqqrben97j9U5L8A3APGIcweBaxcLQPunIZboA9DX8xrP/Y+C0cTJlJksbEb8jDNwrK+xLmX/Bd3o5fQh83/wyu2c/E9WrOR96e74VutLjXhdt5gOfzD79Q09lPziYg+0PkR8NaBwHldpmzRf75asem83OYGlNDacd2dkyiuqCNpa1xOIutdk9IKl0FNCn5C4OYFXaR6vPNwwZWF4lt+cXXs0il2/buWkR1Ydt35W1j0LHAPLezrrD839klfxHmVd+3BEf1RB9TQGMzSseSdMEsx5pWJh1k3gM/QGTRpjeaTat49oHEusSx6P+nU5L1VzfPN60/QJvkiS9ay0xdounbb9pkiI/oYyzQP5JD+dqKqxpBWEEBfhrxc+GhFZEJLPLW9XB9dBF5FCWRVweGyDcGa2SP81xV7L/Vc56jWsKcA/KkCLnpSgBm+b34Fg45VOga1zO2lxEV/Cdk=
- secure: TCYwHystRMTz1AKWfQ7436LM7r2WumYQNaLs3f/j4QLZEZhZJMTUGClYzfc80mbjkcpSsbXcitSOfwLxo+aTG8kgvQTVFZJsNNExinnlZ8zo8h91+iy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0BKvYbWUI5hVyWqIlhImvWzNPo9ksCeYWzfWbT5nDn+2p9gkXvbs+fcxUi8xGBjnvGaL8fshAXaAfRe8J9gtXDxrt5h8BfhAUABBkovS7XwQc0yFCTAF0/76Kl+phnX5JwM6aJGbI1eRgoMCUVRJMDzfXviQaM4ZcpNE/2sxWJSHyLtIE3QlJu1gHGQKnG/M0e7sQ2hpyjdnLvycObH0R2NsvsehLp2nLHjUMXE1kvAW1IsSvBQuHsbhWgTaKx6k3mvCCDs/yzTCcs+KQITr0TPRwsjV3sQ/OO7T6M1D2Cip/BLz70PPVEX0ZHHENC1yRt2009mrGshOQHDgjAIuoBGXO+dIafKho680O5zdAxmlJonoZinfT+wPvalQW31o/CePujjz7NxscYgnFtWxZceSUTc7BtkA/X39pWE2+vC+uy6DjuG/4b0FhWkwfHjTcQHmSBkP0RNFqfitKuWd3oacyLRJ951Xdo=
matrix:
- PLV8_VERSION=1.4.3 SCHEMAS="public"
- PLV8_VERSION=1.4.4 SCHEMAS="public"
- PLV8_VERSION=1.4.4 SCHEMAS="foo bar" MAKE_BUILD_HERE="true"
# Unfortunately plv8 1.5.x hard to install because required very new libv8 version <https://github.com/plv8/plv8/issues/158#issuecomment-189621200>.
notifications:
slack: fhirbase:isitOv0KvPgaMzrccuAzVUwB
before_install:
- |
cd $TRAVIS_BUILD_DIR || exit 1
docker build --tag=fhirbase-tests-in-schemas:pg-9.4-plv8-$PLV8_VERSION \
--file=Dockerfile-pg-9.4-plv8-$PLV8_VERSION ./ || exit 1
script: |
docker run --name=fhirbase-tests-in-schemas \
fhirbase-tests-in-schemas:pg-9.4-plv8-$PLV8_VERSION \
--schemas="$SCHEMAS" --install-fhirbase || exit 1
after_success: |
if [ "$MAKE_BUILD_HERE" == "true" ]; then
docker cp fhirbase-tests-in-schemas:/home/fhirbase/fhirbase/build \
$TRAVIS_BUILD_DIR/ || exit 1
rm --recursive --force $TRAVIS_BUILD_DIR/build/latest
cp --recursive --force \
$TRAVIS_BUILD_DIR/build/$TRAVIS_COMMIT \
$TRAVIS_BUILD_DIR/build/latest
pip install --user --upgrade awscli || exit 1
AWS_DEFAULT_REGION=us-west-1 \
AWS_SECRET_ACCESS_KEY=$BUILD_AWS_SECRET_ACCESS_KEY \
AWS_ACCESS_KEY_ID=$BUILD_AWS_ACCESS_KEY_ID \
aws s3 cp --recursive $TRAVIS_BUILD_DIR/build s3://fhirbase
fi
if [ "$MAKE_BUILD_HERE" == "true" ] && [ ! -z "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo $PASS | gpg --passphrase-fd 0 --decrypt --output - ./secure.tar.gz.asc \
| tar --extract --gzip --file -
[[ ${PIPESTATUS[0]} -ne 0 || ${PIPESTATUS[1]} -ne 0 ]] && exit 1
pip install --user --upgrade 'ansible<2' || exit 1
pip install --user --upgrade boto || exit 1
cd perf/provisioning || exit 1
export ANSIBLE_HOST_KEY_CHECKING=False || exit 1
python2 ~/.local/bin/ansible-playbook \
--inventory-file=inventories/ec2 \
ec2_start.yml || exit 1
python2 ~/.local/bin/ansible-playbook \
--private-key=../../secure/fhirbase_performance_benchmark.pem \
--inventory-file=inventories/ec2.py \
--user=ubuntu \
bootstrap.yml || exit 1
python2 ~/.local/bin/ansible-playbook \
--private-key=../../secure/fhirbase_performance_benchmark.pem \
--inventory-file=inventories/ec2.py \
--user=ubuntu \
--extra-vars="timestamp=foobar" \
perf.yml || exit 1
fi