forked from open-runtimes/open-runtimes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·184 lines (166 loc) · 4.56 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
dist: focal
arch:
- amd64
services:
- docker
os: linux
language: php
php:
- 8.0
vm:
size: large
env:
# Node
- RUNTIME=node-17.0
PHP_CLASS=Node170
ENTRYPOINT=tests.js
SERVER_PROCESS=pm2
IMAGE=openruntimes/node:17.0
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
- RUNTIME=node-16.0
PHP_CLASS=Node160
ENTRYPOINT=tests.js
SERVER_PROCESS=pm2
IMAGE=openruntimes/node:16.0
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
- RUNTIME=node-15.5
PHP_CLASS=Node155
ENTRYPOINT=tests.js
SERVER_PROCESS=pm2
IMAGE=openruntimes/node:15.5
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
- RUNTIME=node-14.5
PHP_CLASS=Node145
ENTRYPOINT=tests.js
SERVER_PROCESS=pm2
IMAGE=openruntimes/node:14.5
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
# Deno
- RUNTIME=deno-1.14
PHP_CLASS=Deno114
ENTRYPOINT=tests.ts
SERVER_PROCESS=server.ts
IMAGE=openruntimes/deno:1.14
ARCH=linux/amd64
- RUNTIME=deno-1.13
PHP_CLASS=Deno113
ENTRYPOINT=tests.ts
SERVER_PROCESS=server.ts
IMAGE=openruntimes/deno:1.13
ARCH=linux/amd64
- RUNTIME=deno-1.12
PHP_CLASS=Deno112
ENTRYPOINT=tests.ts
SERVER_PROCESS=server.ts
IMAGE=openruntimes/deno:1.12
ARCH=linux/amd64
# Python
- RUNTIME=python-3.10
PHP_CLASS=Python310
ENTRYPOINT=tests.py
SERVER_PROCESS=server.py
IMAGE=openruntimes/python:3.10
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
- RUNTIME=python-3.9
PHP_CLASS=Python39
ENTRYPOINT=tests.py
SERVER_PROCESS=server.py
IMAGE=openruntimes/python:3.9
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
- RUNTIME=python-3.8
PHP_CLASS=Python38
ENTRYPOINT=tests.py
SERVER_PROCESS=server.py
IMAGE=openruntimes/python:3.8
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
# Dart
- RUNTIME=dart-2.16
PHP_CLASS=Dart216
ENTRYPOINT=lib/tests.dart
IMAGE=openruntimes/dart:2.16
SERVER_PROCESS=/usr/code-start/runtime
ARCH=linux/amd64,linux/arm64
- RUNTIME=dart-2.15
PHP_CLASS=Dart215
ENTRYPOINT=lib/tests.dart
IMAGE=openruntimes/dart:2.15
SERVER_PROCESS=/usr/code-start/runtime
ARCH=linux/amd64,linux/arm64
- RUNTIME=dart-2.14
PHP_CLASS=Dart214
ENTRYPOINT=lib/tests.dart
SERVER_PROCESS=/usr/code-start/runtime
IMAGE=openruntimes/dart:2.14
ARCH=linux/amd64,linux/arm64
- RUNTIME=dart-2.13
PHP_CLASS=Dart213
ENTRYPOINT=lib/tests.dart
SERVER_PROCESS=/usr/code-start/runtime
IMAGE=openruntimes/dart:2.13
ARCH=linux/amd64
- RUNTIME=dart-2.12
PHP_CLASS=Dart212
ENTRYPOINT=lib/tests.dart
SERVER_PROCESS=/usr/code-start/runtime
IMAGE=openruntimes/dart:2.12
ARCH=linux/amd64
# Ruby
- RUNTIME=ruby-3.1
PHP_CLASS=Ruby31
ENTRYPOINT=tests.rb
SERVER_PROCESS=puma
IMAGE=openruntimes/ruby:3.1
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
- RUNTIME=ruby-3.0
PHP_CLASS=Ruby30
ENTRYPOINT=tests.rb
SERVER_PROCESS=puma
IMAGE=openruntimes/ruby:3.0
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
# PHP
- RUNTIME=php-8.0
PHP_CLASS=PHP80
ENTRYPOINT=tests.php
SERVER_PROCESS=server.php
IMAGE=openruntimes/php:8.0
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
- RUNTIME=php-8.1
PHP_CLASS=PHP81
ENTRYPOINT=tests.php
SERVER_PROCESS=server.php
IMAGE=openruntimes/php:8.1
ARCH=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
# Swift
- RUNTIME=swift-5.5
PHP_CLASS=Swift55
ENTRYPOINT=Tests.swift
SERVER_PROCESS="./Run serve"
IMAGE=openruntimes/swift:5.5
ARCH=linux/amd64,linux/arm64
notifications:
email:
- team@appwrite.io
before_install:
- curl -fsSL https://get.docker.com | sh
- echo '{"experimental":"enabled"}' | sudo tee /etc/docker/daemon.json
- mkdir -p $HOME/.docker
- echo '{"experimental":"enabled"}' | sudo tee $HOME/.docker/config.json
- sudo service docker start
- >
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
fi
- docker --version
- docker run --rm --privileged linuxkit/binfmt:v0.8
- docker buildx create --use
install:
- docker --version
- composer install
script:
- export RUNTIME=${RUNTIME}; export PHP_CLASS=${PHP_CLASS}; export ENTRYPOINT=${ENTRYPOINT}; sh tests.sh
deploy:
- provider: script
edge: true
script: export RUNTIME=${RUNTIME}; ARCH=${ARCH}; export IMAGE=${IMAGE}; sh deploy.sh
on:
tags: true