-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
32 lines (32 loc) · 1.5 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
language: ruby
rvm: 2.3.3
cache:
bundler: true
directories:
- node_modules
branches:
only:
- master
before_install:
- nvm install 7.4.0
install:
- npm install
- bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}
before_script:
- git config --global user.name "hnbot"
- git config --global user.email "nygrenh+hnbot@gmail.com"
- export COMMIT_MESSAGE=Update:\ $(git log -1 --pretty=%s)
- git clone -b gh-pages --single-branch https://github.com/materiaalit/tsoha-18.git
build
script:
- bundle exec middleman build
after_success:
- cd build
- git checkout HEAD README.md .github
- git add --all
- git commit -m "$COMMIT_MESSAGE"
- git push "https://hnbot:$GITHUB_API_KEY@github.com/materiaalit/tsoha-18.git" gh-pages:gh-pages
2>&1 | sed "s/$GITHUB_API_KEY/<confidential>/g"
env:
global:
secure: VTGPdcBdYE6Gfgja5i4giIyaXCYs8rzI3MxYEwgQCL7yl0OM5IZ9ry69L95dx821yWrH3+MWZZcfnq6kAxODC4FIZAEg9URRkgPA6WK7Ey4/LE8xHXWn1h+s6c7KH/n3X7t5QQoORYaSVueOvxAUdKt4GIhJ/w5d8Cs5qFhBVZaL1DX7G8YBmbI86zmU+NbXhMO8qDORaRhNP1rReLjAB/gRkq90ZqiAfvhy6/untw8lN89cG8UiOOkIXxaFMnfgP2ko0p2yV+8TvUyg+LCKTaVG0p3KIrgAU/ZpPYAwP5y6bbnWMem4pOa3LOTo0OcqRiDlJgQhXkpA4+06WWazv6jKNH6xClUFFNNteNsaLJ6mHASu3F/j86DyQvilZQco5PvIDC4fBb1EBLrUTrY3OJhCmuYzbTpZWaph2h6bq0YkHghWs3QIWlWTEYufzolfKxVLXcgqdN+Wkry1i5S9WFd5CxYNhGY4kuy7TKoXzpVc4CR8OnLTloBgN23n8VF4RiV8eD8x6NSV2P4qR3IKxV7V9cm+Ko2d2Dhc1wVyEzZGKavEcreyQoWp0an801ZwRWbFzToDTZyMnyOpve4PtJU6MX458GQ0CLfASEHth/21GmspuApG5NHp4/ari8TNXcfdEDeBrKL93kg/dY/ZFf/6KnQ+WRSypyaCQ4Oyz3Q=