๐Ÿ“ฆ obcode / ob.cs.hm.edu

๐Ÿ“„ .travis.yml ยท 36 lines
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
36sudo: false
language: node_js
node_js:
  - node
branches:
  only:
    - master
before_install:
  - git clone "https://${GH_TOKEN}@github.com/ob-cs-hm-edu/ob-cs-hm-edu.github.io.git" public
  - mv public/.git public.git
  - git log -1 --pretty='Updating site with obcode/ob.cs.hm.edu@%H' > publiccommitmsg
install:
  - npm install
before_script:
  - export TZ=Europe/Berlin
  - date
script:
  - ./node_modules/.bin/spike clean
  - NODE_ENV=production ./node_modules/.bin/spike compile -e production
after_success:
  - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then travis_terminate 0; fi'
  - mv public.git public/.git
  - cd public
  - git config --global user.email deploy@travis-ci.org
  - git config --global user.name "Travis Deployment Bot"
  - git add --all
  - git commit --file ../publiccommitmsg
  - git push "https://${GH_TOKEN}@github.com/ob-cs-hm-edu/ob-cs-hm-edu.github.io.git" master
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/046df6e739e933b26f41
    on_success: always # options: [always|never|change] default: always
    on_failure: always # options: [always|never|change] default: always
    on_start: never