-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
40 lines (35 loc) · 958 Bytes
/
.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
language: d
d:
- dmd
before_script:
- |
cd public
for repo in */ ; do
git clone https://github.com/soupply/${repo////}.git ../gen/$repo
cd ../gen/$repo
cd ../../public
done
cd ..
script:
- VERSION=2.$(( TRAVIS_BUILD_NUMBER - 218 )).0
- echo $VERSION > version.txt
- dub run -- --diff
after_success:
- MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
- DESC="Automatically committed from https://github.com/sel-project/soupply/commit/${TRAVIS_COMMIT}"
- git config --global user.email ${EMAIL}
- git config --global user.name ${USER}
- |
cd gen
for repo in */ ; do
cd $repo
if [ ! -f .nopush ] ; then
git add --all .
git commit -m "${MESSAGE}" -m "${DESC}"
git tag -a "v${VERSION}" -m "${MESSAGE}"
git push -u --follow-tags "https://${TOKEN}@github.com/soupply/${repo////}.git" master
fi
cd ..
done
notifications:
- email: false