https://github.com/Kappa-Dev/KaSim
Raw File
Tip revision: ca68df7267723667fb2adb9aebd80bee5472b372 authored by feret on 21 May 2019, 12:51:25 UTC
In progress
Tip revision: ca68df7
.travis.yml
dist: xenial

env:
  global:
    secure: "XBCnCpNZ9WfkvDLkwMeW/D/TphPpqDJQdSsC9UOK9HFR3rgBmCof36DlirrZeefF6YKTr3Exkbl/7jDUK7hAGoa1c5NbXqYFp4ne3pSo77G3jHbC0zEP5k2F15NKSo8P9x0QsKzi7Mg1liratz7u65jRqURaZG4kFMw4f0NfVGU="

matrix:
  include:
  - env: CHECKED=python
    language: python
    addons:
      apt:
        sources:
          - avsm
        packages:
          - aspcud
          - opam
  - env: CHECKED=js
    addons:
      apt:
        sources:
          - avsm
        packages:
          - aspcud
          - opam
  - env: USE_TK=1
    addons:
      apt:
        sources:
          - avsm
        packages:
          - aspcud
          - opam
          - tk-dev
  - env: CHECKED=native
    addons:
      apt:
        sources:
          - avsm
        packages:
          - aspcud
          - opam
          - gnuplot-nox
          - poppler-utils
          - graphviz
          - latex-xcolor
          - texlive-latex-recommended
          - texlive-fonts-recommended
          - texlive-pictures
          - tex4ht
  - os: osx
    env: CHECKED=MacOS
  - env: CHECKED=windows
    addons:
      apt:
        sources:
          - avsm
        packages:
          - aspcud
          - opam
          - gcc-mingw-w64-x86-64

before_install:
  - sh -c "if [ '$TRAVIS_OS_NAME' = osx ] ; then curl -LO https://github.com/ocaml/opam/releases/download/2.0.4/opam-2.0.4-x86_64-macos && sudo mv opam-2.0.4-x86_64-macos /usr/local/bin/opam && sudo chmod +x /usr/local/bin/opam ; fi"

install:
  - sh -c "if [ '$CHECKED' = windows ] || [ '$CHECKED' = python ] ; then opam init -a --compiler=4.07.0 ; else opam init -a --compiler=4.03.0 ; fi"
  - sh -c "if [ '$CHECKED' = windows ] ; then opam remote add cross-windows git://github.com/ocaml-cross/opam-cross-windows ; fi"
  - eval $(opam env) && opam install -y dune num yojson lwt fmt logs re
  - sh -c "if [ '$CHECKED' = native ] ; then opam install -y odoc ; fi"
  - sh -c "if [ '$USE_TK' = 1 ] ; then opam install -y labltk ; fi"
  - sh -c "if [ '$TRAVIS_OS_NAME' = osx ] || [ '$CHECKED' = js ] || [ '$CHECKED' = windows ] ; then opam install -y lwt_react tyxml-ppx js_of_ocaml-lwt js_of_ocaml-tyxml atdgen ; fi"
  - sh -c "if [ '$CHECKED' = python ] ; then opam install -y atdgen cohttp-lwt-unix ; fi"
  - sh -c "if [ '$CHECKED' = python ] ; then pip install -v . nose ; fi"
  - sh -c "if [ '$CHECKED' = windows ] ; then opam install -y ocaml-windows64 num-windows atdgen-runtime-windows lwt-windows fmt-windows logs-windows re-windows ; fi"

script:
  - make all
  - sh -c "if [ '$CHECKED' = native ] ; then make doc_html ; fi"
  - sh -c "if [ '$CHECKED' = native ] ; then make -j2 check ; fi"
  - sh -c "if [ '$CHECKED' = python ] ; then dune build && cd python && nosetests -v ; fi"
  - sh -c "if [ '$CHECKED' = js ] ; then make Kappapp.tar.gz site/index.html ; fi"
  - sh -c "if [ '$TRAVIS_OS_NAME' = osx ] ; then make Kappapp.app ; fi"
  - sh -c "if [ '$CHECKED' = windows ] ; then make KappaBin.zip ; fi"

after_success:
  - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ( umask 077 && openssl aes-256-cbc -K $encrypted_942f740de87b_key -iv $encrypted_942f740de87b_iv -in dev/travis-deploy.enc -out dev/travis-deploy -d ) ; fi'

deploy:
  provider: script
  script: dev/update-web.sh "$CHECKED"
  skip_cleanup: true
  on:
    branch: master
back to top