|
@@ -1,10 +1,10 @@ |
|
|
base: freebsd-11.2
|
|
|
base: freebsd-11.2
|
|
|
|
|
|
|
|
|
steps:
|
|
|
steps:
|
|
|
- run:
|
|
|
|
|
|
|
|
|
- run: # install dependencies
|
|
|
- ASSUME_ALWAYS_YES=yes pkg bootstrap
|
|
|
- ASSUME_ALWAYS_YES=yes pkg bootstrap
|
|
|
- ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install gmake go git git-lfs ca_root_nss
|
|
|
- ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install gmake go git git-lfs ca_root_nss
|
|
|
# downgrade to Go 1.13
|
|
|
|
|
|
|
|
|
- run: # downgrade to Go 1.13
|
|
|
- ASSUME_ALWAYS_YES=yes pkg remove go
|
|
|
- ASSUME_ALWAYS_YES=yes pkg remove go
|
|
|
- ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install subversion
|
|
|
- ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install subversion
|
|
|
- svn checkout --depth immediates https://svn.FreeBSD.org/ports/tags/RELEASE_12_1_0 ports-12.1.0
|
|
|
- svn checkout --depth immediates https://svn.FreeBSD.org/ports/tags/RELEASE_12_1_0 ports-12.1.0
|
|
@@ -20,26 +20,27 @@ steps: |
|
|
- ALLOW_UNSUPPORTED_SYSTEM=yes BATCH=yes make install clean
|
|
|
- ALLOW_UNSUPPORTED_SYSTEM=yes BATCH=yes make install clean
|
|
|
- cd /
|
|
|
- cd /
|
|
|
- rm -rvf /ports-12.1.0
|
|
|
- rm -rvf /ports-12.1.0
|
|
|
# install Gitea
|
|
|
|
|
|
|
|
|
- run: # install Gitea
|
|
|
- ASSUME_ALWAYS_YES=yes pkg remove go14
|
|
|
- ASSUME_ALWAYS_YES=yes pkg remove go14
|
|
|
- svn checkout --depth immediates https://svn.FreeBSD.org/ports/head ports-head
|
|
|
|
|
|
- cd ports-head
|
|
|
|
|
|
- svn update --set-depth immediates www
|
|
|
|
|
|
- svn update --set-depth infinity www/gitea
|
|
|
|
|
|
- svn update --set-depth infinity Mk
|
|
|
|
|
|
- svn update --set-depth infinity Templates
|
|
|
|
|
|
- svn update --set-depth infinity Tools
|
|
|
|
|
|
- svn update --set-depth infinity Keywords
|
|
|
|
|
|
|
|
|
- export REVISION=534103
|
|
|
|
|
|
- svn checkout -r $REVISION --depth immediates https://svn.FreeBSD.org/ports/head ports-r${REVISION}
|
|
|
|
|
|
- cd ports-r${REVISION}
|
|
|
|
|
|
- svn update -r ${REVISION} --set-depth immediates www
|
|
|
|
|
|
- svn update -r ${REVISION} --set-depth infinity www/gitea
|
|
|
|
|
|
- svn update -r ${REVISION} --set-depth infinity Mk
|
|
|
|
|
|
- svn update -r ${REVISION} --set-depth infinity Templates
|
|
|
|
|
|
- svn update -r ${REVISION} --set-depth infinity Tools
|
|
|
|
|
|
- svn update -r ${REVISION} --set-depth infinity Keywords
|
|
|
- cd www/gitea
|
|
|
- cd www/gitea
|
|
|
- ALLOW_UNSUPPORTED_SYSTEM=yes BATCH=yes make install clean
|
|
|
- ALLOW_UNSUPPORTED_SYSTEM=yes BATCH=yes make install clean
|
|
|
- cd /
|
|
|
- cd /
|
|
|
- rm -rvf /ports-head
|
|
|
|
|
|
# remove unnecessary packages
|
|
|
|
|
|
|
|
|
- rm -rvf /ports-r${REVISION}
|
|
|
|
|
|
- run: # remove unnecessary packages
|
|
|
- ASSUME_ALWAYS_YES=yes pkg remove gmake go
|
|
|
- ASSUME_ALWAYS_YES=yes pkg remove gmake go
|
|
|
- ASSUME_ALWAYS_YES=yes pkg autoremove
|
|
|
- ASSUME_ALWAYS_YES=yes pkg autoremove
|
|
|
# install crudini
|
|
|
|
|
|
|
|
|
- run: # install crudini
|
|
|
- ASSUME_ALWAYS_YES=yes pkg install py27-crudini
|
|
|
- ASSUME_ALWAYS_YES=yes pkg install py27-crudini
|
|
|
# final touches
|
|
|
|
|
|
|
|
|
- run: # final touches
|
|
|
- export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini
|
|
|
- export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini
|
|
|
- crudini --set --inplace $GITEA_CONF oauth2 JWT_SECRET `gitea generate secret JWT_SECRET`
|
|
|
- crudini --set --inplace $GITEA_CONF oauth2 JWT_SECRET `gitea generate secret JWT_SECRET`
|
|
|
- crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `gitea generate secret INTERNAL_TOKEN`
|
|
|
- crudini --set --inplace $GITEA_CONF security INTERNAL_TOKEN `gitea generate secret INTERNAL_TOKEN`
|
|
|