-
Notifications
You must be signed in to change notification settings - Fork 88
/
.travis.yml
43 lines (43 loc) · 3.29 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
dist: focal
env:
global:
- REPO=IFC4.3.x-output
- USER_NAME=bSI-Bot
- SHACLVERSION=1.3.2
- secure: "XXeH/ryHu2uczRfJIOrg372xeYf1NRZnIpcqc+FSW8f2HXNxv1lrGib8iq+qCbUDVyaw9lLouzPd+PqkS0V2RzDycqeA4nv9/CFhhb5bjFSpW1XcHEjf5g8GbVs7suwKP3qU+wGofWfDZQReUtrglPPvgWvDobcRxNLl0mZzN9kar0MQxLd8+we9Ytks4rN8fOj50Jcu4Bcm13KardeCSMVM6fsuYHtnAnJ2hrCEBuT/A5nBELM1pKGAuWYUYdXASMNgYc8Y3OyjVYMGaS5tnUKR+4h9ci5zx5dn1CFCc7txEK9ZsBetRPshBN4ndHQkgvV2RuFIFI8EpLYGSeahJIVYtwnl+HO5n2aHsue4frUsgzjuLElDGRpN9AjbB9Z6sG6IYBbHBU/tsA/N4GaSY2tnBFSm8cZufGoDOgEibpvP0wQqhUd1aF5y9+lrNcOM29ytR7g1I0FutckONGTV+O9y7FEUrauPISxGBAOrAgS7nJE+55+yfGx0QTmGsXwMfPe7ULnpIVWIu2xDKaUs0hPwzg6iJgS7A2lnmvLmYmdumaSMCLAgP+DHLjQcfXVIjnMI3ltM35H9H7W0pVfZtvKxJF2EF0K/CNGdWVcfctYLStZLS2N0p/nkUFg+ZYaDWkLcoDevIhPfKYTRC6octRU5w8A9HFsC1M48JOfRelg="
- secure: "l7G2lCMn/LNRxRMztE4ga+A8JO/tbT3bZuaKbQkdtqd7kM10MSJpyoxVePt1q6ej3WYUyku45TW6R9Kw1OFhRYQiSR67H3SMrlfP447PVoKzXkGuq6yFs6EFDwjVFbDWUiYxZ+KHM9+W16pW2sQfRRTwiljfMcp3Zcjecrdc6gU4alI4ERJt0p6iKoUqJJB0fAQvSbsbHW0uRfeyIqTiXkVBQvtTgpvvILs5NKXnKWs/n44DpgdAT2Hzp87PcEhhNh825ChhbwkR1P6qdajCW1D+WvBhvOZRZ4W/UlpQuX7Fb75jwdWpZ6iT3tYxUGKG8xfDzvAcP19V8+03QAFacizFPtJMqqNPqwmBWcngpQwjWSO563xXva98YV3Ue0U4qhIpXNuSjbHRhJA/sWs+X3/CUez+U3pvwkl2XfNFlx7VIaCWzh87Ac7ca/BnD7aGD0bKwzwRt4PeqSJJo2MJV57Ic4NjsBPQmntqJ1ajGG4nZWkinxV/95z82ehR2fNdzVhMPY/FcioKyw7R7RwzPExbkFTE7lNi7QZPF3fZ8bD9J9X08ZnTJy4QCeYdRCoiKFX7Cea/QpkkN2qM/PjHpAHoTYetAUAD7JfPzipFE3wB5vkCx+n3uK5gOk7C2Lg9tzzszDwPhwqv15lZYW/W2fxa8SBOja+TYC+ZwukkC24="
before_install:
- wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
- sudo apt-get update
install:
- # sudo apt-get install texlive-full imagemagick
- # sudo rm /etc/ImageMagick-6/policy.xml
- # python3 -m pip install hilbertcurve
- pyenv global 3.8
- sudo apt-get update -y && sudo apt-get install -y wget curl unzip openjdk-11-jdk-headless
- python3 -m pip install tabulate "pyparsing<3" lark-parser PyGithub Markdown markdown-it-py==1.1.0 deepdiff rdflib lxml Beautifulsoup4 networkx xmlschema numpy nltk reversestem tqdm
- wget -O /tmp/ifopsh.zip https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-38-v0.7.0-476ab50-linux64.zip
- mkdir -p `python3 -c 'import site; print(site.getusersitepackages())'`
- unzip -d `python3 -c 'import site; print(site.getusersitepackages())'` /tmp/ifopsh.zip
- (cd / && curl --silent --show-error --retry 5 https://repo1.maven.org/maven2/org/topbraid/shacl/${SHACLVERSION}/shacl-${SHACLVERSION}-bin.zip -o - | sudo jar x)
- sudo chmod +x /shacl-${SHACLVERSION}/bin/*
- export PATH="/shacl-${SHACLVERSION}/bin:${PATH}"
script:
- python3 code/main.py
- travis_wait python3 code/validate_schema_shacl.py
after_success:
- |
if [ "$TRAVIS_BRANCH" == "master" ]; then
MESSAGE=$(git log --oneline -1)
git clone https://$USER_NAME:[email protected]/buildingSMART/$REPO
cd $REPO
"[ $TRAVIS_PULL_REQUEST != false ] && git switch -c pr$TRAVIS_PULL_REQUEST"
"[ -d psd/ ] && rm -rf psd"
mv ../output/* .
git config user.email "${USER_EMAIL}"
git config user.name "${USER_NAME}"
git add .
git commit -m "${MESSAGE}"
git push
fi