.gitlab-ci.yml 3.75 KB
Newer Older
1 2 3 4
# This file creates automated tests on GitLab CI for Purr Data.
# See https://docs.gitlab.com/ee/ci/yaml/README.html for details of the format.

# These are script snippets used in the jobs defined below.
5 6 7 8 9
.debian_image_preparation: &debian_image_preparation
  - echo "" | sudo -S apt-get -qq purge -y pd-l2ork > /dev/null || echo "couldn't purge..."
  - echo "" | sudo -S DEBIAN_FRONTEND=noninteractive apt-get -qq -y update > /dev/null
  - echo "" | sudo -S DEBIAN_FRONTEND=noninteractive apt-get -qq -y upgrade > /dev/null

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
.build_all: &build_all
  - echo -e "section_start:`date +%s`:build_all\r\e[0KBuilding Purr Data"
  - cd l2ork_addons
  - ./tar_em_up.sh $BUILD_TYPE_FLAG
  - cd ..
  - echo -e "section_end:`date +%s`:build_all\r\e[0K"

.test_linux: &test_linux
  - echo -e "section_start:`date +%s`:test_linux\r\e[0KTesting Purr Data for Linux"
  - echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
  - valgrind pd-l2ork -noprefs -nogui -nrt -noaudio -send "init dollarzero \$0" scripts/regression_tests.pd
  - valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio scripts/external-tests.pd
  - echo -e "section_end:`date +%s`:text_linux\r\e[0K"

.test_osx: &test_osx
  - echo -e "section_start:`date +%s`:test_osx\r\e[0KTesting Purr Data for Mac OSX"
  - cd scripts
  - ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nogui -noaudio -send "init dollarzero \$0" regression_tests.pd
  - ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nostdpath -nogui -noaudio external-tests.pd
  - echo -e "section_end:`date +%s`:text_osx\r\e[0K"

.test_windows: &test_windows
  - echo -e "section_start:`date +%s`:test_windows\r\e[0KTesting Purr Data for Windows"
  - cd scripts
  - ../packages/win32_inno/build/bin/pd.com -noprefs -nogui -noaudio -send "init dollarzero \$0" regression_tests.pd
  - ../packages/win32_inno/build/bin/pd.com -noprefs -nostdpath -nogui -noaudio external-tests.pd
  - echo -e "section_end:`date +%s`:text_windows\r\e[0K"


39
debian_stretch_x86_64_deb:
Jonathan Wilkes's avatar
Jonathan Wilkes committed
40 41 42
   tags:
     - debian
     - stretch
43
     - x86_64
44 45
   variables:
     BUILD_TYPE_FLAG: -B
46 47
   before_script:
     - *debian_image_preparation
Jonathan Wilkes's avatar
Jonathan Wilkes committed
48
   script:
49 50
     - *build_all
     - *test_linux
51
   artifacts:
52
     name: "$CI_RUNNER_DESCRIPTION"
53
     expire_in: 1 day
54
     paths:
55
       - pd*.deb
56

57
ubuntu_16.04_x86_64_deb:
58 59 60
   tags:
     - ubuntu
     - v16.04
61
     - x86_64
62 63
   variables:
     BUILD_TYPE_FLAG: -B
64 65
   before_script:
     - *debian_image_preparation
66
   script:
67 68
     - *build_all
     - *test_linux
69
   artifacts:
70
     name: "$CI_RUNNER_DESCRIPTION"
71
     expire_in: 1 day
72
     paths:
73
       - pd*.deb
Jonathan Wilkes's avatar
Jonathan Wilkes committed
74

75
osx_10.11_x86_64_dmg:
Jonathan Wilkes's avatar
Jonathan Wilkes committed
76 77 78 79
   tags:
     - osx
     - v10.11
     - dmg
80 81
   variables:
     BUILD_TYPE_FLAG: -X
Jonathan Wilkes's avatar
Jonathan Wilkes committed
82 83
   script:
     - echo `pwd`
84 85
     - *build_all
     - *test_osx
Jonathan Wilkes's avatar
Jonathan Wilkes committed
86
   artifacts:
87
     name: "$CI_RUNNER_DESCRIPTION"
Jonathan Wilkes's avatar
Jonathan Wilkes committed
88 89
     expire_in: 1 day
     paths:
Jonathan Wilkes's avatar
Jonathan Wilkes committed
90
       - Pd*.dmg
91

92
osx_10.8_x86_64_dmg:
93 94 95 96
   tags:
     - osx
     - v10.8
     - dmg
97 98
   variables:
     BUILD_TYPE_FLAG: -X
99 100
   script:
     - echo `pwd`
101 102
     - *build_all
     - *test_osx
103
   artifacts:
104
     name: "$CI_RUNNER_DESCRIPTION"
105 106 107
     expire_in: 1 day
     paths:
       - Pd*.dmg
108

109
windows_i386_innosetup:
Jonathan Wilkes's avatar
Jonathan Wilkes committed
110 111 112
  tags:
    - windows
    - i386
113 114
  variables:
    BUILD_TYPE_FLAG: -Z
Jonathan Wilkes's avatar
Jonathan Wilkes committed
115 116
  script:
    - echo `pwd`
117 118
    - *build_all
    - *test_windows
Jonathan Wilkes's avatar
Jonathan Wilkes committed
119
  artifacts:
120
    name: "$CI_RUNNER_DESCRIPTION"
Jonathan Wilkes's avatar
Jonathan Wilkes committed
121 122 123
    expire_in: 1 day
    paths:
      - Purr*.exe
124

125
raspbian_stretch_armv7l_deb:
126
   tags:
127
     - raspbian
128
     - arm 
129
     - stretch
130 131
   variables:
     BUILD_TYPE_FLAG: -r
132 133
   before_script:
     - *debian_image_preparation
134 135
   script:
     - echo `pwd`
136 137
     - *build_all
     - *test_linux
138
   artifacts:
139
     name: "$CI_RUNNER_DESCRIPTION"
140 141 142
     expire_in: 1 day
     paths:
       - pd*.deb