forked from Kappa-Dev/KappaTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
99 lines (93 loc) · 3.21 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
dist: bionic
env:
global:
secure: "XBCnCpNZ9WfkvDLkwMeW/D/TphPpqDJQdSsC9UOK9HFR3rgBmCof36DlirrZeefF6YKTr3Exkbl/7jDUK7hAGoa1c5NbXqYFp4ne3pSo77G3jHbC0zEP5k2F15NKSo8P9x0QsKzi7Mg1liratz7u65jRqURaZG4kFMw4f0NfVGU="
matrix:
include:
- env: CHECKED=python
language: python
addons:
apt:
sources:
- sourceline: 'ppa:avsm/ppa'
packages:
- aspcud
- opam
- env: CHECKED=js
addons:
apt:
sources:
- sourceline: 'ppa:avsm/ppa'
packages:
- aspcud
- opam
- ocaml-nox
- env: USE_TK=1
addons:
apt:
sources:
- sourceline: 'ppa:avsm/ppa'
packages:
- aspcud
- opam
- ocaml-nox
- tk-dev
- env: CHECKED=native
addons:
apt:
sources:
- sourceline: 'ppa:avsm/ppa'
packages:
- aspcud
- opam
- ocaml-nox
- gnuplot-nox
- poppler-utils
- graphviz
- texlive-latex-recommended
- texlive-fonts-recommended
- texlive-pictures
- tex4ht
- os: osx
env: CHECKED=MacOS
osx_image: xcode11
addons:
homebrew:
packages:
- opam
- ocaml
- env: CHECKED=windows
addons:
apt:
sources:
- sourceline: 'ppa:avsm/ppa'
packages:
- aspcud
- opam
- gcc-mingw-w64-x86-64
install:
- sh -c "if [ '$CHECKED' = windows ] || [ '$CHECKED' = python ] ; then opam init -a --compiler=4.07.0 ; else opam init -a ; 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 && nosetests -v tests/kappy ; 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