Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using Travis-CI for checking pull-request #2

Open
kinichiro opened this issue May 7, 2016 · 2 comments
Open

using Travis-CI for checking pull-request #2

kinichiro opened this issue May 7, 2016 · 2 comments

Comments

@kinichiro
Copy link
Owner

take consider using travis-ci for checking pull-request.

  • settings below works fine and it takes about 20 min. to build all documents.
  • apt-get install takes a lot of time of build.

.travis.yml

language: c
dist: trusty
sudo: required
cache: apt

before_script:
  - sudo apt-get -qq update
  - sudo apt-get install -y asciidoc pandoc gettext po4a dblatex
  - sudo apt-get install -y source-highlight
  - sudo apt-get install -y fonts-freefont-ttf fonts-vlgothic
  - sudo apt-get install -y texlive-xetex
  - sudo apt-get install -y texlive-lang-cjk
  - sudo apt-get install -y texlive-lang-cyrillic
  - sudo apt-get install -y texlive-lang-dutch
  - sudo apt-get install -y texlive-lang-english
  - sudo apt-get install -y texlive-lang-french
  - sudo apt-get install -y texlive-lang-german
  - sudo apt-get install -y texlive-lang-italian
  - sudo apt-get install -y texlive-lang-polish
  - sudo apt-get install -y texlive-lang-spanish
  - chmod ugo+x utils/travis/build.sh

script: utils/travis/build.sh

utils/travis/build.sh

#!/bin/sh
set -e

mkdir build
cd build
cmake ../
make -j4
@kinichiro
Copy link
Owner Author

update .travis.yml and include utils/travis/build.sh in it.

language: bash
dist: trusty
sudo: required
cache: apt
before_script:
  - sudo apt-get -qq update
  - sudo apt-get install -y asciidoc pandoc gettext po4a dblatex
  - sudo apt-get install -y source-highlight
  - sudo apt-get install -y fonts-freefont-ttf fonts-vlgothic
  - sudo apt-get install -y texlive-xetex
  - sudo apt-get install -y texlive-lang-cjk
  - sudo apt-get install -y texlive-lang-cyrillic
  - sudo apt-get install -y texlive-lang-dutch
  - sudo apt-get install -y texlive-lang-english
  - sudo apt-get install -y texlive-lang-french
  - sudo apt-get install -y texlive-lang-german
  - sudo apt-get install -y texlive-lang-italian
  - sudo apt-get install -y texlive-lang-polish
  - sudo apt-get install -y texlive-lang-spanish
script: mkdir build && cd build && cmake .. && make -j4

@kinichiro
Copy link
Owner Author

container base .travis.yml should be below, but this doesn't work.

language: bash
dist: trusty
sudo: false
cache: apt
addons:
  apt:
    packages:
      - asciidoc
      - pandoc
      - gettext
      - po4a
      - dblatex
      - source-highlight
      - fonts-freefont-ttf
      - fonts-vlgothic
      - texlive-xetex
      - texlive-lang-cjk
      - texlive-lang-cyrillic
      - texlive-lang-dutch
      - texlive-lang-english
      - texlive-lang-french
      - texlive-lang-german
      - texlive-lang-italian
      - texlive-lang-polish
      - texlive-lang-spanish
script: mkdir build && cd build && cmake .. && make -j4

kinichiro pushed a commit that referenced this issue Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant