You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2018/03/05 23:33:28 UTC
[incubator-mxnet] branch master updated: host doc on s3 (#9928)
This is an automated email from the ASF dual-hosted git repository.
marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 5984a5b host doc on s3 (#9928)
5984a5b is described below
commit 5984a5b002bad27e6dece34bf87f01db8bad93c7
Author: Sheng Zha <sz...@users.noreply.github.com>
AuthorDate: Mon Mar 5 18:33:24 2018 -0500
host doc on s3 (#9928)
* host doc on s3
* update install
---
Jenkinsfile | 1 +
tests/ci_build/deploy/aws | 29 ++++++++++++++++++++++++++++
tests/ci_build/deploy/ci_deploy_doc.sh | 35 ++++++++++++++++++++++++++++++++++
3 files changed, 65 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
index 78af1cf..d0295f0 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -692,6 +692,7 @@ try {
init_git()
sh "make clean"
sh "make docs"
+ sh "tests/ci_build/deploy/ci_deploy_doc.sh ${env.BRANCH_NAME} ${env.BUILD_NUMBER}"
}
}
}
diff --git a/tests/ci_build/deploy/aws b/tests/ci_build/deploy/aws
new file mode 100755
index 0000000..810a0b9
--- /dev/null
+++ b/tests/ci_build/deploy/aws
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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
+#
+# http://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.
+import sys
+import os
+
+if os.environ.get('LC_CTYPE', '') == 'UTF-8':
+ os.environ['LC_CTYPE'] = 'en_US.UTF-8'
+import awscli.clidriver
+
+main = awscli.clidriver.main
+
+if __name__ == '__main__':
+ sys.exit(main())
diff --git a/tests/ci_build/deploy/ci_deploy_doc.sh b/tests/ci_build/deploy/ci_deploy_doc.sh
new file mode 100755
index 0000000..44c8192
--- /dev/null
+++ b/tests/ci_build/deploy/ci_deploy_doc.sh
@@ -0,0 +1,35 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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
+#
+# http://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.
+
+#
+# Execute command outside a docker container
+#
+# Usage: ci_deploy_doc.sh <PR_ID> <BUILD_ID>
+#
+# PR_ID: the PR number
+#
+# BUILD_ID: the current build ID for the specified PR
+#
+
+# TODO szha@: installation of awscli here should be removed once slave hosts have them during
+# bootstrap. The following line along with the "aws" script should both be removed then.
+pip install --user awscli
+
+tests/ci_build/deploy/aws s3 sync --delete docs/_build/html/ s3://mxnet-ci-doc/$1/$2 \
+ && echo "Doc is hosted at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/$1/$2/index.html"
--
To stop receiving notification emails like this one, please contact
marcoabreu@apache.org.