Fix #22: Simplify CI by removing gen directory

Now copy everything into the public directory instead of the gen directory and copying that to the public directory in the last stage of CI.

Merge request reports

Loading
+1 −1
Changes for docs/cmu-user/Makefile: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ cmu-user :

all : cmu-user-info.tar.bz2 cmu-user.pdf cmu-user.html cmu-user/index.html cmu-user-html.tar.bz2

PUBUSER = ../../gen/docs/cmu-user
PUBUSER = ../../public/docs/cmu-user

$(PUBUSER) :
	mkdir -p $@
+1 −1
Changes for docs/interface/Makefile: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ toolkit :
internals :
	mkdir internals

PUBDIR = ../../gen/docs/interface
PUBDIR = ../../public/docs/interface

$(PUBDIR)/internals :
	mkdir -p $@
+1 −1
Changes for docs/internals/Makefile: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ design/index.html : design $(SRCS)
design :
	mkdir design

PUBDIR = ../../gen/docs/internals
PUBDIR = ../../public/docs/internals

$(PUBDIR) :
	mkdir -p $@
+7 −7
Changes for .gitlab-ci.yml: 7 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ cache:
    - texinfo
    - bin
    - share
    - gen

# Just creates the public directory where we're keeping all of the
# generated docs.
@@ -35,14 +34,13 @@ site:
  artifacts:
     paths:
       - public
       - gen
  # Always build the site, even if nothing has changed.  Maybe we
  # don't really want to do this
  # and only build the site if something changed?
  script:
    # Just need to copy all of the html files to the gen directory
    - (cd cmucl-www/www; tar cf - .) | (cd gen; tar xf -)
    - ls -F gen
    - (cd cmucl-www/www; tar cf - .) | (cd public; tar xf -)
    - ls -F public

# Generates the texi docs.  Only done if some texi file changed so we don't
# have to download and build texinfo if nothing changed. 
@@ -53,12 +51,14 @@ docs:
  artifacts:
     paths:
       - public
       - gen
  only:
    changes:
      - docs/cmu-user/*.texi
      - docs/cmu-user/Makefile
      - docs/interface/*.texi
      - docs/internals/*.texi
      - docs/internals/Makefile
      - docs/interface/*.texi
      - docs/internals/Makefile
  script:
    # Get dev version of texinfo
    - ./build-texinfo.sh
@@ -82,7 +82,7 @@ docs:
pages:
  stage: deploy
  script:
    - cp -r gen/* public
    - echo Deploying
  artifacts:
     paths:
       - public
Loading