-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.readthedocs.yml
More file actions
41 lines (40 loc) · 2.17 KB
/
.readthedocs.yml
File metadata and controls
41 lines (40 loc) · 2.17 KB
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
# Copyright (c) 2023 The University of Manchester
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
jobs:
build:
html:
- pip install jq
- curl -s https://api.github.com/repos/apache/maven/releases/latest | python -c "import jq, json, sys; print(jq.compile(\".name\").input_value(json.load(sys.stdin)).first())" > .MAVEN_VERSION
- cat .MAVEN_VERSION
- curl --output jdk.tar.gz https://download.java.net/java/GA/jdk25.0.1/2fbf10d8c78e40bd87641c434705079d/8/GPL/openjdk-25.0.1_linux-x64_bin.tar.gz
- tar zxvf jdk.tar.gz
- curl --output maven.tar.gz https://dlcdn.apache.org/maven/maven-3/$(cat .MAVEN_VERSION)/binaries/apache-maven-$(cat .MAVEN_VERSION)-bin.tar.gz
- tar zxvf maven.tar.gz
- mkdir -p ${READTHEDOCS_VIRTUALENV_PATH}/bin/
- ln -s $PWD/jdk-25.0.1/bin/java ${READTHEDOCS_VIRTUALENV_PATH}/bin/java
- ln -s $PWD/jdk-25.0.1/bin/javac ${READTHEDOCS_VIRTUALENV_PATH}/bin/javac
- ln -s $PWD/jdk-25.0.1/bin/javadoc ${READTHEDOCS_VIRTUALENV_PATH}/bin/javadoc
- ln -s $PWD/apache-maven-$(cat .MAVEN_VERSION)/bin/mvn ${READTHEDOCS_VIRTUALENV_PATH}/bin/mvn
- echo "jdk-25.0.1/**" >> .gitignore
- echo "apache-maven-$(cat .MAVEN_VERSION)/**" >> .gitignore
- echo ".MAVEN_VERSION" >> .gitignore
- JAVA_HOME=$PWD/jdk-25.0.1/ mvn install --settings .github/settings.xml -DskipTests=true -Dmaven.javadoc.skip=true
- JAVA_HOME=$PWD/jdk-25.0.1/ mvn site site:stage --settings .github/settings.xml -P "!jsp-precompile"
- mkdir -p ${READTHEDOCS_OUTPUT}html/
- cp -a target/staging/* ${READTHEDOCS_OUTPUT}html/