-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (49 loc) · 1.46 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
sudo: false
language: generic
os: osx
osx_image: xcode8.2
cache:
directories:
- $HOME/Library/Caches/Homebrew
- $HOME/miniconda3
bundler: true
branches:
only:
- master
notifications:
email:
on_success: never
on_failure: never
before_install:
- brew update
- brew upgrade
- brew install ghostscript
- brew install imagemagick
- brew install caskroom/cask/brew-cask
- travis_retry travis_wait 180 brew cask install mactex
- pushd $HOME
- chmod u+x travis-script/install-miniconda && ./travis-script/install-miniconda
- popd
install:
- conda create -n thesis --file requirements.txt
- source activate thesis
script:
- chmod +x compile && travis_wait 180 bash compile -fg
after_success:
# CREATE GIT TAG
- cp bin/ThesisRomainBrault.pdf .
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
- git add ThesisRomainBrault.pdf
- git commit -m "Travis generation of ThesisRomainBrault.pdf"
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push --quiet [email protected]:RomainBrault/Thesis.git $GIT_TAG > /dev/null 2>&1
# # push on publish branch
# - git checkout --orphan publish
# - git rm -r .
# - rm -r .
# - cp bin/ThesisRomainBrault.pdf .
# - git add -A
# - git commit -m "Travis generation of ThesisRomainBrault.pdf"
# - git push -u publish