-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
32 lines (32 loc) · 1.51 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 "[email protected]"
- export COMMIT_MESSAGE=Update:\ $(git log -1 --pretty=%s)
- git clone -b gh-pages --single-branch https://github.com/materiaalit/ohjelmointi-s17.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:[email protected]/materiaalit/ohjelmointi-s17.git"
gh-pages:gh-pages 2>&1 | sed "s/$GITHUB_API_KEY/<confidential>/g"
env:
global:
secure: hyx8CY/nfyCF+rddesdOG9eD4ai2EXpMny8yGSOvj0U5TvS+hUgUtJqccF863/XKPJ5seCSmb6mEgg998JLt3K4N2/n95W6ltebbB6YFmEmd3YsvfnUeK5bFtfp5JFsULZE3ArNnSGTlGVqR+fkghGlVSUQM3QqpJcRmzEZ9QpWybnphlXAzXeZXdxqodTBoV8+QlKpPJ/TKxCmOmS9K4ynBCxPIlFtKQ54GJqWTjtc0JtL6rVArOF6JZi+2b4EUKbaC2SypG6n09Kp6JT1J7aDX/HfgM9xeCFrq5n92jMUl2pZjvwb7UuMBUTfgkvsl3ilHOhtm0FHtrfWm+lFd23pltQ9OVkwtd71SbqZjjFyLSBruq/DziLs7C8FaO7QwreT1JdaMsZ1bwcSYbj5VGxvJVnGYk/WDWyKK3fK4/7gc4bvJ5AZ1jCI3g9GxeIZhCZrnQiLv1ls1pX3bjRDOHrzmMsSF4fiFZTIYqFm1l7E8ZkmmuK2XxnUVoVAIDIJtyIuC8Rvp+gDQf29PpDk/5a4rYcrldGe9QxUZFPk1RkBrnGTq7WPwpyd6/CRtC0dzocOSvd73O6bIpvD1DaiMITPVWcojBqXXC/WZydKe4V/5j6beTo7crCQkqc/7E+LVONGo0Vq+UOSA8DmZDlccv3xIHf4SNzak0AdKe39skHI=