Merge pull request #3903 from crazyserver/MOBILE-3947
MOBILE-3947 travis: Update linux distribution to Jammy
This commit is contained in:
		
						commit
						f40c473ddf
					
				
							
								
								
									
										6
									
								
								.github/workflows/acceptance.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/acceptance.yml
									
									
									
									
										vendored
									
									
								
							@ -16,7 +16,7 @@ on:
 | 
			
		||||
        required: true
 | 
			
		||||
        default: 'https://github.com/moodle/moodle'
 | 
			
		||||
  pull_request:
 | 
			
		||||
    branches: [ main, ionic7, v*.x ]
 | 
			
		||||
    branches: [ main, v*.x ]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  behat:
 | 
			
		||||
@ -30,8 +30,8 @@ jobs:
 | 
			
		||||
      BEHAT_TAGS: ${{ github.event.inputs.behat_tags || '~@performance' }}
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - uses: actions/setup-node@v3
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: actions/setup-node@v4
 | 
			
		||||
      with:
 | 
			
		||||
        node-version-file: '.nvmrc'
 | 
			
		||||
    - name: Additional checkouts
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/merge.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/merge.yml
									
									
									
									
										vendored
									
									
								
							@ -10,7 +10,7 @@ jobs:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
      with:
 | 
			
		||||
        persist-credentials: false
 | 
			
		||||
        fetch-depth: 0
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/mirror.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/mirror.yml
									
									
									
									
										vendored
									
									
								
							@ -10,7 +10,7 @@ jobs:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
      with:
 | 
			
		||||
        persist-credentials: false
 | 
			
		||||
        fetch-depth: 0
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								.github/workflows/performance.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/performance.yml
									
									
									
									
										vendored
									
									
								
							@ -10,8 +10,8 @@ jobs:
 | 
			
		||||
      MOODLE_DOCKER_BROWSER: chrome
 | 
			
		||||
      MOODLE_DOCKER_PHP_VERSION: '8.0'
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - uses: actions/setup-node@v3
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: actions/setup-node@v4
 | 
			
		||||
      with:
 | 
			
		||||
        node-version-file: '.nvmrc'
 | 
			
		||||
    - name: Additional checkouts
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@ -19,11 +19,11 @@ jobs:
 | 
			
		||||
      RELEASE_TYPE: ${{ github.event.inputs.release_type || 'final' }}
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
      with:
 | 
			
		||||
        persist-credentials: false
 | 
			
		||||
        fetch-depth: 0
 | 
			
		||||
    - uses: actions/setup-node@v3
 | 
			
		||||
    - uses: actions/setup-node@v4
 | 
			
		||||
      with:
 | 
			
		||||
        node-version-file: '.nvmrc'
 | 
			
		||||
    - name: Install npm packages
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								.github/workflows/update_behat_plugin.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/update_behat_plugin.yml
									
									
									
									
										vendored
									
									
								
							@ -7,8 +7,8 @@ jobs:
 | 
			
		||||
    if: github.repository == 'moodlehq/moodleapp' || github.repository == 'moodlemobile/moodleapp'
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - uses: actions/setup-node@v3
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - uses: actions/setup-node@v4
 | 
			
		||||
      with:
 | 
			
		||||
        node-version-file: '.nvmrc'
 | 
			
		||||
    - name: Install npm packages
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										28
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								.travis.yml
									
									
									
									
									
								
							@ -1,8 +1,8 @@
 | 
			
		||||
os: linux
 | 
			
		||||
dist: trusty
 | 
			
		||||
node_js: 14
 | 
			
		||||
dist: jammy
 | 
			
		||||
node_js: 18
 | 
			
		||||
jdk:
 | 
			
		||||
  - oraclejdk11
 | 
			
		||||
  - openjdk17
 | 
			
		||||
 | 
			
		||||
git:
 | 
			
		||||
  depth: 3
 | 
			
		||||
@ -21,6 +21,7 @@ cache:
 | 
			
		||||
    - $HOME/Library/Caches/Homebrew
 | 
			
		||||
 | 
			
		||||
before_install:
 | 
			
		||||
  - echo -e "machine github.com\n login $GIT_TOKEN" > ~/.netrc
 | 
			
		||||
  - nvm install
 | 
			
		||||
  - node --version
 | 
			
		||||
  - npm --version
 | 
			
		||||
@ -37,26 +38,7 @@ jobs:
 | 
			
		||||
  include:
 | 
			
		||||
  - name: "Build Android"
 | 
			
		||||
    if: env(DEPLOY) = 1 OR (env(DEPLOY) = 2 AND tag IS NOT blank)
 | 
			
		||||
    language: android
 | 
			
		||||
    android:
 | 
			
		||||
      components:
 | 
			
		||||
      - tools
 | 
			
		||||
      - platform-tools
 | 
			
		||||
      - build-tools-29.0.3
 | 
			
		||||
      - android-29
 | 
			
		||||
      - extra-google-google_play_services
 | 
			
		||||
      - extra-google-m2repository
 | 
			
		||||
      - extra-android-m2repository
 | 
			
		||||
    before_install:
 | 
			
		||||
      - nvm install
 | 
			
		||||
      - node --version
 | 
			
		||||
      - npm --version
 | 
			
		||||
      - nvm --version
 | 
			
		||||
      - npm ci
 | 
			
		||||
      - export JAVA_HOME_COPY=$JAVA_HOME
 | 
			
		||||
      - export JAVA_HOME=/usr/lib/jvm/java-8-oracle
 | 
			
		||||
      - yes | sdkmanager "build-tools;32.0.0"
 | 
			
		||||
      - export JAVA_HOME=$JAVA_HOME_COPY
 | 
			
		||||
    language: java
 | 
			
		||||
    addons:
 | 
			
		||||
      apt:
 | 
			
		||||
        packages:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user