forked from githwxi/ATS-Postiats
-
Notifications
You must be signed in to change notification settings - Fork 3
/
travis.yml
69 lines (69 loc) · 4.03 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
os:
- osx
- linux
sudo: false
language: c
services:
- docker
compiler:
- gcc
- clang
env:
global:
# ATS1
- ATSVER=0.2.12
- ATSHOME=${HOME}/ats-lang-anairiats-${ATSVER}
- ATSHOMERELOC=ATS-${ATSVER}
# ATS2
- PATSHOME=${TRAVIS_BUILD_DIR}
- PATSHOMERELOC=${HOME}/ATS-Postiats-contrib
- PATSCONTRIB=${PATSHOMERELOC}
- PATSHOME_contrib=${PATSHOMERELOC}
# Path
- PATH=${PATH}:${PATSHOME}/bin
# Docker
- secure: "QZ8IFnlmrMwFkBR00MVvj1wAelGn+RGhmP/bGIKrS0znxbBbIkXZbFKR1a0VoWBIjtV9pKoAd9OeFVojxnQr8msolN1hN7n+u9z56cnUMMgOVxXxS5UQuEAn8DgTolHIy/fc81IS0RYexxR+JsN/sRNPTLTO+iKTeoEmZKq9vms=" # DOCKER_USER
- secure: "f6PFoHAU6Fhe673zNnyxEdE9rcEIDtaro1xETYaIFRB/yEpMfRqJnXCXgHNh2P9EDy5DM3+41NFjV2WhPXtdDOnbViDznMRr24VY3Mullzvbt5xjImir/Ig7QOrlvf2nCQzpi21CCKcy3UlmqRDhVmP+T4WSshmEcBckkAD5U0Q=" # DOCKER_PASS
- secure: "V7sH6XcR30gIbFhTroTA+4UuRZQ0e/+/ezDYhDt6I3oEPXnOA2Z8AV6uzblRhAlalIunaZSXsRqz/br/HgBSlDniIFdLYumMrCjSBjXptp4O0guaVVY2vrG0ivr6xeaDFf52TfUIruLrslArgrOFgvPGX+/HiFqH2hky8oqpRf0=" # DOCKER_USER_WU
- secure: "Y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QoCYRqDVsVeaY40WCC+8b/plQVBr5w71QyoTQoIikkhs2Zypy7SJ0ixyWTVMD/UIB47lmAMT8jyMLqrTQw7TI1iu12HrvfowF/p1CClhPEFX+WYVO7lChWCaRQlJ1qsiqfpL/qed7Kh4hLOOzWr/HyhJXz00nfcWoqX6oJ0HhW47ozh+XOtWfX24aL9nq1r1T41qTCZz+z/hYnKs4pEUVJChL7I6x3BzBjreF1iuH0tSzYMlLlKLOyTCXAstjU+dliVKDlwXchIq804MMI8OR0KT3Iid3M1rOjx1JLS2YcZcsrMFzqWThL77/7P1q3AJ+e1B46a45zOFTRtArIwxvUjSyEturk/L9+4JTsmZnorLy0F85WcyRul5IFmcErqxu61IXyEMfCmCBPtDZTJkcmAdRGAmKRKRltOE2SL/rZm9sCWZ+G50rEQsA66L/x7VXOo7jGi+Y8ILXIPs27Ab1mCWWttCm4zkpAZJQezp3cTIs28=" # DOCKER_PASS_RELEASE
addons:
apt:
packages:
- libgc-dev
- libgmp3-dev
- libgtk-3-dev
- libev-dev
- libjson-c-dev
- libjansson-dev
- docbook-utils
- python
- python3
before_install:
# Install OSX Packages
- if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then ${TRAVIS_BUILD_DIR}/my-travis-ci/install_osx.sh; fi
install:
# Build ATS1
- date
- (cd ${HOME} && ${TRAVIS_BUILD_DIR}/my-travis-ci/install_ats1.sh)
script:
# Build ATS2
- ${CC} --version
- (cd ${PATSHOME} && ${TRAVIS_BUILD_DIR}/my-travis-ci/install_ats2.sh)
# Initial Testing
- patscc
# Running regress test
- (cd ${PATSHOME} && ${TRAVIS_BUILD_DIR}/my-travis-ci/test_regress.sh)
after_success:
# Build utils
- (cd ${PATSHOME} && ${TRAVIS_BUILD_DIR}/my-travis-ci/install_utilities.sh)
# Build books
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then (cd ${PATSHOME} && make -C doc/BOOK/ATS2TUTORIAL); fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then (cd ${PATSHOME} && make -C doc/BOOK/INT2PROGINATS); fi
# Build&Upload Docker Image
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CC" = "gcc" ]; then (docker login -u $DOCKER_USER_RELEASE -p $DOCKER_PASS_RELEASE); fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CC" = "gcc" ]; then (cd ${TRAVIS_BUILD_DIR}/my-travis-ci && ./build_docker.sh); fi
after_script:
# End Time
- date