forked from HL7/fhir
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
44 lines (37 loc) · 4.11 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
# Build & Run FHIR Publisher, and push output to gh-pages
langauge: java
# JDK has been set to JDK8 to see if this clears up transient memory issues
jdk:
- oraclejdk8
script: ./build.sh
sudo: false
notifications:
email:
webhooks: http://fhir.me:5556/notify/status
after_success:
- echo -e "U2FsdGVkX18rOnEsz2pfACgonGRHL9WOHO3NyhPxfc2vRNeRrcNcc4jV6PgtZwhB\nPXkqlcczeQXrN/7qchY1CKBGc2SUqlrjiqkU/jth3ZERneDpRQM6hxEh/bSZeWV1\nNFg4PGJPASWKV3Qz8UQUBJ85E/V3ZR5bDdfea9lym+YFh71uM/nU9B1wHrNBrTGD\nBDoNXSEmy4YhdRg6UDIdjh517QDfevKpUB4v98bPkANK1WiaXRoK3J+C/PbI/Y5V\n3hFx0iFFpMuIg8xq6xDxIRmF8o5jriCqVrjoRRgQK3G/Kc/CUs2v9HhpkT01mwX3\n2WF9gTHXHFX54QU0x2KoDcZAzkjrmSUy3EVLC1UI5Md7m9RLpVNzcW2iD+EGeXCH\nGflMt6DWnzSlEF87Vs029Xa5yc57MKDz5PidmVdq++uc8GZSHqPukJrjao+IflhN\nC5vwhaUA0u58zs5XHa3+0TG4tlTQYAYZi1M35gz54j8D7RH/64yQN5OE0ceRbvl+\nyuVg/7bjoDrKBQvSpdBYg5xLyB8JHDsLKbMJw4U7RR4WU7LtPHp4m96Q39Y2BAI/\np1l9zQw71zQwgdpwYSc16csXc1Q2ZCXlb9ohpXh82DNPNwcoikvgKGszYLhjlyfR\ny6SeAMVjRT8WYtl1iXNL35SflUnrwgq1Ig4yTl207jXlWIW3i33r0W2u/d98pC1U\nZljFY5VqqVfvrWR76C8VrgdlT37/AF2cIL1r2h2MTDtYuIQTn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XbvZrDUEsUqpcfxYe8lh27e258xcBJCyVCvP9P+WHFFibM6ekPI1S2riz6IF\nWG0TysMXkIuYgcKridD+OAwEgzd39Y8z8M21oTPuuiEnb35lVWiDFUaagnzxbx6q\nDWSsMPIrGGsuw11YG5y6VxQFKHVoy2CCN40krPRwEQm7hXh4KtbRvkjjptxiAUNl\ns4UL/u40V/KL48hBgDXC+CQZE2yFekM3Df6W+lFXxCUisRP+1GgmMeTDNt4n81JK\nOqzAWtC57x72nnjyYHczP5f1Rp5/9OeZVnKXzjrYqqMuqE02lywUmSKhVbe6gN3f\nAtP5DVQiXdKKtiI7ODbrwxxLNbs7tFmXmR90uqt+9TYyFt8zElEdhbi/QJ6sYZ2B\nHsmTZaOuiKNPKCEdtWLJ8O3Ec8bY/KOqXiF4rUBEsOnHoEzmD2wmxRbWEKCH5Rlp\nKJX4VB3SkmaxQuMgaNUcNA==\n" | openssl aes-256-cbc -k "$password" -d -a -out ~/deploy_fhir_docs
- chmod 600 ~/deploy_fhir_docs
- git config --global user.email "[email protected]"
- git config --global user.name "FHIR Build"
- echo -e "Host github.com\n IdentityFile ~/deploy_fhir_docs" > ~/.ssh/config
- echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" > ~/.ssh/known_hosts
- mkdir hl7-fhir.github.io
- cd hl7-fhir.github.io
- git init
- git remote add origin [email protected]:hl7-fhir/hl7-fhir.github.io.git
- cp -r ../publish/* .
- ../remove_files_larger_than_100mg_for_gh_pages_compatibility.sh
- git add -A .
- git commit -m "Travis docs build"
- git push -f origin master
env:
global:
secure: "MV6r5LHUxQns93+NuKCv+iJPDLoSRSXpJ5YNq36mlO7pKIiHxWOYkrdxaXFyZU7lJzYMuJuFFpPPmzBNN8AqGo+3GY/ge6cODbYyAyS+PPUnazKNSyha7Hu9XQh1px44NBgnwE3wbltXYYvwQbHe8vXhDwBLXYZe9xj0g4YY4ms="
# To recreate the payload + "secure" var above:
# password=`openssl rand -hex 32`
# cat ~/.ssh/deploy_fhir_docs | openssl aes-256-cbc -k "$password" -a
# travis encrypt password=$password -r hl7-fhir/fhir-svn