|
8 | 8 | DISPLAY: '0:0' |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - linux: |
12 | | - strategy: |
13 | | - matrix: |
14 | | - include: |
15 | | - - DOCKER_IMAGE: ubuntu:trusty |
16 | | - - DOCKER_IMAGE: ubuntu:xenial |
17 | | - - DOCKER_IMAGE: ubuntu:bionic |
18 | | - - DOCKER_IMAGE: ubuntu:focal |
19 | | - - DOCKER_IMAGE: debian:stretch |
20 | | - - DOCKER_IMAGE: ubuntu:trusty |
21 | | - ROS_DISTRO: indigo |
22 | | - - DOCKER_IMAGE: ubuntu:xenial |
23 | | - ROS_DISTRO: kinetic |
24 | | - - DOCKER_IMAGE: ubuntu:bionic |
25 | | - ROS_DISTRO: meodic |
26 | | - - DOCKER_IMAGE: ubuntu:focal |
27 | | - ROS_DISTRO: noetic |
28 | | - - DOCKER_IMAGE: osrf/ubuntu_armhf:trusty |
29 | | - - DOCKER_IMAGE: osrf/ubuntu_armhf:xenial |
30 | | - - DOCKER_IMAGE: osrf/ubuntu_arm64:trusty |
31 | | - - DOCKER_IMAGE: osrf/ubuntu_arm64:xenial |
32 | | - - QEMU: aarch64 |
33 | | - DOCKER_IMAGE: arm64v8/ubuntu:bionic |
34 | | - - QEMU: aarch64 |
35 | | - DOCKER_IMAGE: arm64v8/ubuntu:focal |
36 | | - - DOCKER_IMAGE: osrf/debian_arm64:stretch |
37 | | - - DOCKER_IMAGE: amd64/debian:unstable |
38 | | - # |
39 | | - - QEMU: amd64 |
40 | | - DOCKER_IMAGE: amd64/debian:unstable # amd64 |
41 | | - - QEMU: aarch64 |
42 | | - DOCKER_IMAGE: arm64v8/debian:buster # arm64 |
43 | | - - QEMU: arm |
44 | | - DOCKER_IMAGE: arm32v5/debian:jessie # armel |
45 | | - - QEMU: arm |
46 | | - DOCKER_IMAGE: arm32v7/debian:jessie # armhf |
47 | | - # hppa |
48 | | - # hurd-i386 |
49 | | - - QEMU: i386 |
50 | | - DOCKER_IMAGE: i386/debian:unstable # i386 |
51 | | - - QEMU: i386 |
52 | | - DOCKER_IMAGE: i386/debian:buster # i386 |
53 | | - # ia64 |
54 | | - # m68k |
55 | | - - QEMU: mips64el |
56 | | - DOCKER_IMAGE: loongnix/debian:buster # mips64el |
57 | | - # mipsel |
58 | | - # - QEMU: ppc |
59 | | - # DOCKER_IMAGE: vicamo/debian:unstable-powerpc # powerpc / somehow failing loading eusgl |
60 | | - - QEMU: ppc64le |
61 | | - DOCKER_IMAGE: ppc64le/debian:buster # ppc64 |
62 | | - # riscv64 |
63 | | - # sh4 |
64 | | - # sparc64 |
65 | | - fail-fast: false |
| 11 | + # linux: |
| 12 | + # strategy: |
| 13 | + # matrix: |
| 14 | + # include: |
| 15 | + # - DOCKER_IMAGE: ubuntu:trusty |
| 16 | + # - DOCKER_IMAGE: ubuntu:xenial |
| 17 | + # - DOCKER_IMAGE: ubuntu:bionic |
| 18 | + # - DOCKER_IMAGE: ubuntu:focal |
| 19 | + # - DOCKER_IMAGE: debian:stretch |
| 20 | + # - DOCKER_IMAGE: ubuntu:trusty |
| 21 | + # ROS_DISTRO: indigo |
| 22 | + # - DOCKER_IMAGE: ubuntu:xenial |
| 23 | + # ROS_DISTRO: kinetic |
| 24 | + # - DOCKER_IMAGE: ubuntu:bionic |
| 25 | + # ROS_DISTRO: meodic |
| 26 | + # - DOCKER_IMAGE: ubuntu:focal |
| 27 | + # ROS_DISTRO: noetic |
| 28 | + # - DOCKER_IMAGE: osrf/ubuntu_armhf:trusty |
| 29 | + # - DOCKER_IMAGE: osrf/ubuntu_armhf:xenial |
| 30 | + # - DOCKER_IMAGE: osrf/ubuntu_arm64:trusty |
| 31 | + # - DOCKER_IMAGE: osrf/ubuntu_arm64:xenial |
| 32 | + # - QEMU: aarch64 |
| 33 | + # DOCKER_IMAGE: arm64v8/ubuntu:bionic |
| 34 | + # - QEMU: aarch64 |
| 35 | + # DOCKER_IMAGE: arm64v8/ubuntu:focal |
| 36 | + # - DOCKER_IMAGE: osrf/debian_arm64:stretch |
| 37 | + # - DOCKER_IMAGE: amd64/debian:unstable |
| 38 | + # # |
| 39 | + # - QEMU: amd64 |
| 40 | + # DOCKER_IMAGE: amd64/debian:unstable # amd64 |
| 41 | + # - QEMU: aarch64 |
| 42 | + # DOCKER_IMAGE: arm64v8/debian:buster # arm64 |
| 43 | + # - QEMU: arm |
| 44 | + # DOCKER_IMAGE: arm32v5/debian:jessie # armel |
| 45 | + # - QEMU: arm |
| 46 | + # DOCKER_IMAGE: arm32v7/debian:jessie # armhf |
| 47 | + # # hppa |
| 48 | + # # hurd-i386 |
| 49 | + # - QEMU: i386 |
| 50 | + # DOCKER_IMAGE: i386/debian:unstable # i386 |
| 51 | + # - QEMU: i386 |
| 52 | + # DOCKER_IMAGE: i386/debian:buster # i386 |
| 53 | + # # ia64 |
| 54 | + # # m68k |
| 55 | + # - QEMU: mips64el |
| 56 | + # DOCKER_IMAGE: loongnix/debian:buster # mips64el |
| 57 | + # # mipsel |
| 58 | + # # - QEMU: ppc |
| 59 | + # # DOCKER_IMAGE: vicamo/debian:unstable-powerpc # powerpc / somehow failing loading eusgl |
| 60 | + # - QEMU: ppc64le |
| 61 | + # DOCKER_IMAGE: ppc64le/debian:buster # ppc64 |
| 62 | + # # riscv64 |
| 63 | + # # sh4 |
| 64 | + # # sparc64 |
| 65 | + # fail-fast: false |
66 | 66 |
|
67 | | - runs-on: ubuntu-18.04 |
68 | | - timeout-minutes: 60 |
| 67 | + # runs-on: ubuntu-18.04 |
| 68 | + # timeout-minutes: 60 |
69 | 69 |
|
70 | | - name: linux |
| 70 | + # name: linux |
71 | 71 |
|
72 | | - steps: |
73 | | - - name: Checkout |
74 | | - uses: actions/checkout@v2 |
75 | | - - name: Run test |
76 | | - shell: bash |
77 | | - run: | |
78 | | - set -x |
79 | | - export CI_SOURCE_PATH=$(pwd) |
80 | | - export REPOSITORY_NAME=${PWD##*/} |
81 | | - export TRAVIS_BRANCH=${GITHUB_REF#refs/heads/} |
82 | | - export TRAVIS_OS_NAME=linux |
83 | | - export DOCKER_IMAGE=${{matrix.DOCKER_IMAGE}} |
84 | | - export ROS_DISTRO=${{matrix.ROS_DISTRO}} |
85 | | - export QEMU=${{matrix.QEMU}} |
86 | | - export MAKEFLAGS="-j4" |
87 | | - if [[ "$QEMU" != "" || "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt-get update -y -qq; fi |
88 | | - if [[ "$QEMU" != "" ]]; then sudo apt-get install -y -qq qemu-user-static; ls /usr/bin/qemu-*-static; export QEMU_VOLUME="-v /usr/bin/qemu-$QEMU-static:/usr/bin/qemu-$QEMU-static" ; fi |
89 | | - if [[ "$QEMU" != "" ]]; then docker run --rm --privileged multiarch/qemu-user-static:register; fi |
90 | | - if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt-get install -y -qq qemu-user-static; fi |
91 | | - if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then git clone http://github.com/euslisp/jskeus ${HOME}/jskeus; fi |
92 | | - echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME on $QEMU_VOLUME" |
93 | | - docker run --rm $QEMU_VOLUME -v $HOME:$HOME -e "QEMU=$QEMU" -e "TRAVIS_OS_NAME=$TRAVIS_OS_NAME" -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -e "MAKEFLAGS=$MAKEFLAGS" -e "DOCKER_IMAGE=$DOCKER_IMAGE" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh" |
| 72 | + # steps: |
| 73 | + # - name: Checkout |
| 74 | + # uses: actions/checkout@v2 |
| 75 | + # - name: Run test |
| 76 | + # shell: bash |
| 77 | + # run: | |
| 78 | + # set -x |
| 79 | + # export CI_SOURCE_PATH=$(pwd) |
| 80 | + # export REPOSITORY_NAME=${PWD##*/} |
| 81 | + # export TRAVIS_BRANCH=${GITHUB_REF#refs/heads/} |
| 82 | + # export TRAVIS_OS_NAME=linux |
| 83 | + # export DOCKER_IMAGE=${{matrix.DOCKER_IMAGE}} |
| 84 | + # export ROS_DISTRO=${{matrix.ROS_DISTRO}} |
| 85 | + # export QEMU=${{matrix.QEMU}} |
| 86 | + # export MAKEFLAGS="-j4" |
| 87 | + # if [[ "$QEMU" != "" || "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt-get update -y -qq; fi |
| 88 | + # if [[ "$QEMU" != "" ]]; then sudo apt-get install -y -qq qemu-user-static; ls /usr/bin/qemu-*-static; export QEMU_VOLUME="-v /usr/bin/qemu-$QEMU-static:/usr/bin/qemu-$QEMU-static" ; fi |
| 89 | + # if [[ "$QEMU" != "" ]]; then docker run --rm --privileged multiarch/qemu-user-static:register; fi |
| 90 | + # if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt-get install -y -qq qemu-user-static; fi |
| 91 | + # if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then git clone http://github.com/euslisp/jskeus ${HOME}/jskeus; fi |
| 92 | + # echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME on $QEMU_VOLUME" |
| 93 | + # docker run --rm $QEMU_VOLUME -v $HOME:$HOME -e "QEMU=$QEMU" -e "TRAVIS_OS_NAME=$TRAVIS_OS_NAME" -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -e "MAKEFLAGS=$MAKEFLAGS" -e "DOCKER_IMAGE=$DOCKER_IMAGE" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh" |
94 | 94 |
|
95 | | - # test for non X11/GL environment, i.e. embedded environment |
96 | | - linux-nox: |
97 | | - runs-on: ubuntu-latest |
98 | | - container: ubuntu:20.04 |
99 | | - timeout-minutes: 60 |
100 | | - steps: |
101 | | - - name: Checkout |
102 | | - uses: actions/checkout@v2 |
103 | | - - name: Setup environmnet |
104 | | - shell: bash |
105 | | - run: | |
106 | | - set -xe |
107 | | - apt update -y -qq && apt install -y -qq make gcc g++ libjpeg-dev |
108 | | - dpkg --get-selections | egrep -e '(x11|gl)' || echo "OK" ## show selected X/GL |
109 | | - dpkg --get-selections | egrep -q -e '(x11|gl)' && exit 1 ## exit 1, when X/GL found |
110 | | - exit 0 |
111 | | - - name: Compile eusg |
112 | | - shell: bash |
113 | | - run: | |
114 | | - set -xe |
115 | | - export EUSDIR=$(pwd) |
116 | | - export ARCHDIR=Linux64 |
117 | | - cd lisp |
118 | | - ln -sf Makefile.$ARCHDIR Makefile |
119 | | - make eus0 eus1 eus2 eusg |
120 | | - - name: Run test |
121 | | - shell: bash |
122 | | - run: | |
123 | | - export EUSDIR=$(pwd) |
124 | | - export ARCHDIR=Linux64 |
125 | | - export PATH=$EUSDIR/$ARCHDIR/bin:$EUSDIR/$ARCHDIR/lib:$PATH |
126 | | - export LD_LIBRARY_PATH=$EUSDIR/$ARCHDIR/lib:$EUSDIR/$ARCHDIR/bin:$LD_LIBRARY_PATH |
127 | | - set -xe |
128 | | - (cd test; make) |
129 | | - sed -i 's/* 20 vmrss-orig/* 30 vmrss-orig/' test/object.l ## relax test, not sure why... |
130 | | - export EXIT_STATUS=0; for test_l in test/*.l; do eusg $test_l; export TMP_EXIT_STATUS=$?; export EXIT_STATUS=`expr $TMP_EXIT_STATUS + $EXIT_STATUS`; done; [ $EXIT_STATUS == 0 ] || exit 1 |
131 | | - - name: Check jskeus |
132 | | - shell: bash |
133 | | - run: | |
134 | | - export EUSDIR=$(pwd) |
135 | | - export ARCHDIR=Linux64 |
136 | | - export PATH=$EUSDIR/$ARCHDIR/bin:$EUSDIR/$ARCHDIR/lib:$PATH |
137 | | - export LD_LIBRARY_PATH=$EUSDIR/$ARCHDIR/lib:$EUSDIR/$ARCHDIR/bin:$LD_LIBRARY_PATH |
138 | | - set -xe |
139 | | - apt install -y -qq git |
140 | | - git clone --depth 1 https://github.com/euslisp/jskeus |
141 | | - eusg lib/llib/unittest.l '(progn (init-unit-test)(load "jskeus/irteus/irtrobot.l"))' |
142 | | - eusg lib/llib/unittest.l '(progn (init-unit-test)(load "jskeus/irteus/irtsensor.l"))' |
| 95 | + # # test for non X11/GL environment, i.e. embedded environment |
| 96 | + # linux-nox: |
| 97 | + # runs-on: ubuntu-latest |
| 98 | + # container: ubuntu:20.04 |
| 99 | + # timeout-minutes: 60 |
| 100 | + # steps: |
| 101 | + # - name: Checkout |
| 102 | + # uses: actions/checkout@v2 |
| 103 | + # - name: Setup environmnet |
| 104 | + # shell: bash |
| 105 | + # run: | |
| 106 | + # set -xe |
| 107 | + # apt update -y -qq && apt install -y -qq make gcc g++ libjpeg-dev |
| 108 | + # dpkg --get-selections | egrep -e '(x11|gl)' || echo "OK" ## show selected X/GL |
| 109 | + # dpkg --get-selections | egrep -q -e '(x11|gl)' && exit 1 ## exit 1, when X/GL found |
| 110 | + # exit 0 |
| 111 | + # - name: Compile eusg |
| 112 | + # shell: bash |
| 113 | + # run: | |
| 114 | + # set -xe |
| 115 | + # export EUSDIR=$(pwd) |
| 116 | + # export ARCHDIR=Linux64 |
| 117 | + # cd lisp |
| 118 | + # ln -sf Makefile.$ARCHDIR Makefile |
| 119 | + # make eus0 eus1 eus2 eusg |
| 120 | + # - name: Run test |
| 121 | + # shell: bash |
| 122 | + # run: | |
| 123 | + # export EUSDIR=$(pwd) |
| 124 | + # export ARCHDIR=Linux64 |
| 125 | + # export PATH=$EUSDIR/$ARCHDIR/bin:$EUSDIR/$ARCHDIR/lib:$PATH |
| 126 | + # export LD_LIBRARY_PATH=$EUSDIR/$ARCHDIR/lib:$EUSDIR/$ARCHDIR/bin:$LD_LIBRARY_PATH |
| 127 | + # set -xe |
| 128 | + # (cd test; make) |
| 129 | + # sed -i 's/* 20 vmrss-orig/* 30 vmrss-orig/' test/object.l ## relax test, not sure why... |
| 130 | + # export EXIT_STATUS=0; for test_l in test/*.l; do eusg $test_l; export TMP_EXIT_STATUS=$?; export EXIT_STATUS=`expr $TMP_EXIT_STATUS + $EXIT_STATUS`; done; [ $EXIT_STATUS == 0 ] || exit 1 |
| 131 | + # - name: Check jskeus |
| 132 | + # shell: bash |
| 133 | + # run: | |
| 134 | + # export EUSDIR=$(pwd) |
| 135 | + # export ARCHDIR=Linux64 |
| 136 | + # export PATH=$EUSDIR/$ARCHDIR/bin:$EUSDIR/$ARCHDIR/lib:$PATH |
| 137 | + # export LD_LIBRARY_PATH=$EUSDIR/$ARCHDIR/lib:$EUSDIR/$ARCHDIR/bin:$LD_LIBRARY_PATH |
| 138 | + # set -xe |
| 139 | + # apt install -y -qq git |
| 140 | + # git clone --depth 1 https://github.com/euslisp/jskeus |
| 141 | + # eusg lib/llib/unittest.l '(progn (init-unit-test)(load "jskeus/irteus/irtrobot.l"))' |
| 142 | + # eusg lib/llib/unittest.l '(progn (init-unit-test)(load "jskeus/irteus/irtsensor.l"))' |
143 | 143 |
|
144 | 144 | # test for non X11/GL environment, i.e. embedded environment |
145 | 145 | linux-nox-crosscompile: |
@@ -206,36 +206,36 @@ jobs: |
206 | 206 | eusg lib/llib/unittest.l '(progn (init-unit-test)(load "jskeus/irteus/irtrobot.l"))' |
207 | 207 | eusg lib/llib/unittest.l '(progn (init-unit-test)(load "jskeus/irteus/irtsensor.l"))' |
208 | 208 |
|
209 | | - osx: |
210 | | - runs-on: macos-latest |
211 | | - timeout-minutes: 60 |
212 | | - steps: |
213 | | - - name: Checkout |
214 | | - uses: actions/checkout@v2 |
215 | | - - name: Get brew cache directory |
216 | | - id: brew-cache |
217 | | - run: echo "::set-output name=dir::$(brew --cache)/downloads" |
218 | | - - name: Brew cache |
219 | | - uses: actions/cache@v2 |
220 | | - with: |
221 | | - path: ${{ steps.brew-cache.outputs.dir }} |
222 | | - key: ${{ runner.os }}-${{ hashFiles('.github/workflows/Brewfile') }} |
223 | | - - name: Brew config |
224 | | - run: | |
225 | | - cd .github/workflows/ |
226 | | - brew config |
227 | | - - name: Run test |
228 | | - shell: bash |
229 | | - run: | |
230 | | - set -x |
231 | | - export CI_SOURCE_PATH=$(pwd) |
232 | | - export REPOSITORY_NAME=${PWD##*/} |
233 | | - export TRAVIS_BRANCH=${GITHUB_REF#refs/heads/} |
234 | | - export TRAVIS_OS_NAME=osx |
235 | | - export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" |
236 | | - export LC_CTYPE=C |
237 | | - (cd ${HOME}; git clone --depth 1 http://github.com/euslisp/jskeus jskeus) |
238 | | - (cd ${HOME}/jskeus; patch -f -p1 < ${CI_SOURCE_PATH}/.github/workflows/fix-dylib-location.patch || echo "OK") |
239 | | - bash -x ./.travis.sh |
240 | | - - name: Cleanup some brew downloads |
241 | | - run: cd ${{ steps.brew-cache.outputs.dir }} && ls -lsS | head -n 10 | awk '{ print $10 }' | xargs rm -rf |
| 209 | + # osx: |
| 210 | + # runs-on: macos-latest |
| 211 | + # timeout-minutes: 60 |
| 212 | + # steps: |
| 213 | + # - name: Checkout |
| 214 | + # uses: actions/checkout@v2 |
| 215 | + # - name: Get brew cache directory |
| 216 | + # id: brew-cache |
| 217 | + # run: echo "::set-output name=dir::$(brew --cache)/downloads" |
| 218 | + # - name: Brew cache |
| 219 | + # uses: actions/cache@v2 |
| 220 | + # with: |
| 221 | + # path: ${{ steps.brew-cache.outputs.dir }} |
| 222 | + # key: ${{ runner.os }}-${{ hashFiles('.github/workflows/Brewfile') }} |
| 223 | + # - name: Brew config |
| 224 | + # run: | |
| 225 | + # cd .github/workflows/ |
| 226 | + # brew config |
| 227 | + # - name: Run test |
| 228 | + # shell: bash |
| 229 | + # run: | |
| 230 | + # set -x |
| 231 | + # export CI_SOURCE_PATH=$(pwd) |
| 232 | + # export REPOSITORY_NAME=${PWD##*/} |
| 233 | + # export TRAVIS_BRANCH=${GITHUB_REF#refs/heads/} |
| 234 | + # export TRAVIS_OS_NAME=osx |
| 235 | + # export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" |
| 236 | + # export LC_CTYPE=C |
| 237 | + # (cd ${HOME}; git clone --depth 1 http://github.com/euslisp/jskeus jskeus) |
| 238 | + # (cd ${HOME}/jskeus; patch -f -p1 < ${CI_SOURCE_PATH}/.github/workflows/fix-dylib-location.patch || echo "OK") |
| 239 | + # bash -x ./.travis.sh |
| 240 | + # - name: Cleanup some brew downloads |
| 241 | + # run: cd ${{ steps.brew-cache.outputs.dir }} && ls -lsS | head -n 10 | awk '{ print $10 }' | xargs rm -rf |
0 commit comments