From e7ac8661f9987abfe149d2e78ce8eeebd69b71c2 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Tue, 5 Jun 2018 11:30:19 -0400 Subject: [PATCH] Begin setting up GitLab CI. --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..c5d9e428 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +variables: + JEKYLL_ENV: production + +stages: + - build + +build_project: + stage: build + script: + - "( ./lib/bin/build_libsodium-macos )" + - "( cd ./platform-independent/cli-c && ./clean && targets='mpw mpw-bench mpw-tests' ./build && ./mpw-tests && ./mpw-cli-tests )" + - "( cd ./gradle && ./gradlew --info clean test )" + - "( xcodebuild -workspace platform-darwin/MasterPassword.xcworkspace -configuration 'Test' -scheme 'MasterPassword iOS' -sdk iphonesimulator | xcpretty -s )" + - "( xcodebuild -workspace platform-darwin/MasterPassword.xcworkspace -configuration 'Test' -scheme 'MasterPassword macOS' | xcpretty -s )" + tags: + - xcode-9 + only: + - master + +before_script: +- bundle install + +pages: + stage: deploy + script: + - bundle exec jekyll build -d public + artifacts: + paths: + - public + only: + - gh-pages