From 2349c47da1518bfa67bef4de855c655467fae9d6 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Sat, 11 Apr 2020 03:32:03 +0200 Subject: [PATCH] restructure for 17.1 Change-Id: I0a3f3cb0fb56718c4c7bdeab47108151c307998b --- .gitlab-ci.yml | 18 ++++++++++++++++-- ...{lineage-14.1-ttab.xml => lineage-14.1.xml} | 0 ...eage-15.1-s5neolte.xml => lineage-15.1.xml} | 0 manifests/lineage-17.1.xml | 14 ++++++++++++++ targets.json | 15 +++++++++++++++ 5 files changed, 45 insertions(+), 2 deletions(-) rename manifests/{lineage-14.1-ttab.xml => lineage-14.1.xml} (100%) rename manifests/{lineage-15.1-s5neolte.xml => lineage-15.1.xml} (100%) create mode 100644 manifests/lineage-17.1.xml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1e93bdf..40e62c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,13 +13,27 @@ build: script: - | + if [ ${VERSION} = '17.1' ]; then + export CCACHE_EXEC=$(which ccache) + export WITHOUT_CHECK_API=true + fi PATH="$HOME/bin:$PATH" if [ ${OTA} = 'false' ]; then export LINEAGE_VERSION_APPEND_TIME_OF_DAY=true fi - cd ~/android/lineage/${VERSION} + if [ -f ~/android/lineage/${VERSION} ]; then + cd ~/android/lineage/${VERSION} + else + mkdir -p ~/android/lineage/${VERSION} + cd ~/android/lineage/${VERSION} + if [ ${VERSION} = '14.1' ]; then + repo init -u git://github.com/LineageOS/android.git -b cm-${VERSION} + else + repo init -u git://github.com/LineageOS/android.git -b lineage-${VERSION} + fi + fi rm -rf .repo/local_manifests/* - cp ${CI_PROJECT_DIR}/manifests/lineage-${VERSION}-${DEVICE}.xml .repo/local_manifests/roomservice.xml + cp ${CI_PROJECT_DIR}/manifests/lineage-${VERSION}.xml .repo/local_manifests/roomservice.xml repo sync -d -c -j8 --force-sync . build/envsetup.sh if ! [ -z ${REPOPICK_NUMBERS} ]; then diff --git a/manifests/lineage-14.1-ttab.xml b/manifests/lineage-14.1.xml similarity index 100% rename from manifests/lineage-14.1-ttab.xml rename to manifests/lineage-14.1.xml diff --git a/manifests/lineage-15.1-s5neolte.xml b/manifests/lineage-15.1.xml similarity index 100% rename from manifests/lineage-15.1-s5neolte.xml rename to manifests/lineage-15.1.xml diff --git a/manifests/lineage-17.1.xml b/manifests/lineage-17.1.xml new file mode 100644 index 0000000..7ac70f1 --- /dev/null +++ b/manifests/lineage-17.1.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/targets.json b/targets.json index be4e69a..eee994e 100644 --- a/targets.json +++ b/targets.json @@ -8,5 +8,20 @@ "device": "ttab", "version": "14.1", "build_type": "userdebug" + }, + { + "device": "dreamlte", + "version": "17.1", + "build_type": "userdebug" + }, + { + "device": "dream2lte", + "version": "17.1", + "build_type": "userdebug" + }, + { + "device": "greatlte", + "version": "17.1", + "build_type": "userdebug" } ] \ No newline at end of file -- 2.20.1