Vmeda.Online/.travis.yml

84 lines
1.9 KiB
YAML
Raw Normal View History

2021-02-25 14:44:00 +00:00
os: linux
dist: trusty
2021-08-31 15:43:19 +00:00
node_js: 14
2021-02-25 14:44:00 +00:00
git:
depth: 3
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
npm: true
directories:
- $HOME/.npm
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
before_install:
- nvm install
2021-09-14 11:00:44 +00:00
- npm install npm@^7 -g
2021-02-25 14:44:00 +00:00
- node --version
- npm --version
- nvm --version
- npm ci
- yes | sdkmanager "build-tools;30.0.3"
2021-02-25 14:44:00 +00:00
before_script:
- npx gulp
2021-02-25 14:44:00 +00:00
script:
2021-02-25 14:44:00 +00:00
- scripts/build.sh
2021-03-18 13:04:16 +00:00
jobs:
include:
- stage: build
name: "Build Android"
2021-07-02 12:10:22 +00:00
if: env(DEPLOY) = 1 OR (env(DEPLOY) = 2 AND tag IS NOT blank)
2021-03-18 13:04:16 +00:00
language: android
android:
components:
- tools
- platform-tools
- build-tools-29.0.3
- android-29
2021-03-18 13:04:16 +00:00
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
addons:
apt:
packages:
- libsecret-1-dev
2022-03-24 10:45:44 +00:00
- php5-cli
- php5-common
2021-03-18 13:04:16 +00:00
- stage: build
name: "Build iOS"
language: node_js
2021-07-02 12:10:22 +00:00
if: env(BUILD_IOS) = 1 AND (env(DEPLOY) = 1 OR (env(DEPLOY) = 2 AND tag IS NOT blank))
2021-03-18 13:04:16 +00:00
os: osx
2022-03-24 10:45:44 +00:00
osx_image: xcode13.1
addons:
homebrew:
packages:
- jq
2021-06-15 14:30:20 +00:00
- stage: test
name: "End to end tests (mod_forum and mod_messages)"
services:
- docker
if: type = cron
script: scripts/test_e2e.sh "@app&&@mod_forum" "@app&&@mod_messages"
- stage: test
name: "End to end tests (mod_course, core_course and mod_courses)"
services:
- docker
if: type = cron
script: scripts/test_e2e.sh "@app&&@mod_course" "@app&&@core_course" "@app&&@mod_courses"
- stage: test
name: "End to end tests (others)"
services:
- docker
if: type = cron
script: scripts/test_e2e.sh "@app&&~@mod_forum&&~@mod_messages&&~@mod_course&&~@core_course&&~@mod_courses"