Skip to content

Commit 2da0f46

Browse files
committed
Add deployment script for generated substitution parameters
1 parent cdeb7f4 commit 2da0f46

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ dist: trusty
22
sudo: required
33
language: java
44
jdk:
5-
- openjdk8
5+
- openjdk8
66
python:
7-
- "2.7"
7+
- '2.7'
8+
env:
9+
global:
10+
- GH_REF=github.com/ldbc/ldbc_snb_datagen.git
11+
- secure: CkvlhK6IfI4meJVYmMzR6aOVciQgps0OCRk+CD6HBLsM+xKphjN0L/Tq4z/yeNT4WjV5pLqNvfAUX4RdfdDwjSWbdmjpuJPNu6AilYBRCP6LVM+v76phsNFaFK2cU+BNMyFmunv8JK70hM5VV+A+h2BbkIeVCzUkMIVOzh+SRqogx7CreGopCrvvJm4ai65+2JIuWanduIBWmI8YiSkq6/41Nb9Nyi3z7szNHoADjF/fS1rbGjwXehRWKrbKjSQvP3WNEHgvEHDqWzRoatdQuBQm5SDXjJYYCpxqpXDQJnClOpItkNCrFUm0tU9ZtZUhu91IjNCBZO1DzrdwhsBjQC79gk8opCDKq9FyBJvtQiOSBgkFvifY+Fz9KGJ4V4k3ixZst1WflsRYP9N9byRhDRPOgohFjCNAhGeqc8HHJe1/0SY3QTCiQY7PvosxXE7jrfSgbsfv0iVSVgTiATcQH5f+27/UjQpeCDsssoLU18OtGfcHSYn2UVUo/GKgOmnvTnPhfGcRKG1rMj9ZgwQHAF1WO1ZNlM+SnD2dCJk3Z0t4SUMlDuurn7LuHh+3Xl5eLxYxBzogLN9jQK3PwPuMcDBSBCBhyHmEHXaqX+AUiKEhsCMKqSF4VDjwtRRP2nkbFF/I1jxKo635R/dd1dQJQETEJI6Vicf1P/K0jtN1iyQ=
12+
- secure: UG0OiJIFnm9mlQvV62cRwZzRFclw1Tu1QTFTUvEVcyskFV7fvIZjVZ1ozvIs8arfVulHXnijWYOr4X76HqB4bEMCpuk47nTk6zA+8omC+IVML1C8Mq0yT7L0k9iCShPOylAtvTqUMtrgewYXINqsQQxunqwWsIoeIdFh3wC+Km+0k2/NlxGlsCj4ajP1reGcYxj9b51mjskAC4EueJn0mgd7uFS3C92hJEaFovKUykpnVx9Vx54ssm2QkTtijdGiEUtps8b93dQQ0wQ/KShTQ6HiHr60Z0pt5PGThVT7EeO9RSHEJjIGhK+UKEf6ab0yxWjQxoIGjXEE19orVA+hLiHq9nnAQK293Y6+J6Qc6s+HI2PTrymI3kQGi3KcTN/K9ukW2wfulxX4R/nTFAtWJK4MMmMBahC+t2dSeKDKbq0yzFfFaSgFPLfDcfe/aQ/YBWFDhbvAqWmguMTcwreNeZMvMNLDdRCY3uXMOjqVEhxbJItbyhXCYTnPgdDDKcaJO2GaOadSzZdomwFhqpKjOca9ynVes1NX1Q+jv9E1862l9D8gkWGiMekMW2IhaVZTQvp1V77TCJ+az4jJVmTPdMAjiQvyisKFzC39xYUix11fYuZOTKQjPB1r4CUwVTTS649n6VwGukE0OdnzEFqbMHql6iV4ODQlHEO+syNbAOM=
813
script:
9-
- mvn test
10-
- wc -l ./test_data/social_network/*
11-
- head -n 15 ./test_data/social_network/person_0_0.csv
12-
- head -n 15 ./test_data/social_network/person_knows_person_0_0.csv
14+
- mvn test | grep "^\\["
15+
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then ./deploy.sh;
16+
fi
1317
notifications:
1418
slack: ldbcouncil:OrBanrJ7l0EHQbj8T5YdJYhd
1519
email: false

deploy.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
set -e # exit with nonzero exit code if anything fails
4+
5+
# clear and re-create the out directory
6+
rm -rf out || exit 0
7+
mkdir out
8+
9+
# run our compile script, discussed above
10+
cp -r substitution_parameters out/
11+
12+
# go to the out directory and create a *new* Git repo
13+
cd out
14+
git init
15+
16+
# inside this git repo we'll pretend to be a new user
17+
git config user.name "FTSRG BME"
18+
git config user.email "[email protected]"
19+
20+
# The first and only commit to this new Git repo contains all the
21+
# files present with the commit message "Deploy to GitHub Pages".
22+
git add .
23+
git commit -m "Deploy to GitHub Pages"
24+
25+
# Force push from the current repo's master branch to the remote
26+
# repo's gh-pages branch. (All previous history on the gh-pages branch
27+
# will be lost, since we are overwriting it.) We redirect any output to
28+
# /dev/null to hide any sensitive credential data that might otherwise be exposed.
29+
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1

0 commit comments

Comments
 (0)