.gitlab-ci.yml 2.37 KB
Newer Older
Drew's avatar
Drew committed
1
stages:
Drew's avatar
Drew committed
2
- test
Drew's avatar
Drew committed
3
- package
Drew's avatar
Drew committed
4
- deploy
Drew's avatar
Drew committed
5 6

osx:
Drew's avatar
Drew committed
7
    stage: test
Drew's avatar
Drew committed
8
    script:
Drew's avatar
Drew committed
9
      - atpm fetch
Drew's avatar
Drew committed
10 11 12
      - atbuild check
      
    tags:
Drew's avatar
Drew committed
13
      - xcode8
Drew's avatar
Drew committed
14 15
      - openswift
      - atbuild
Drew's avatar
Drew committed
16
      - atpm
Drew's avatar
Drew committed
17

Drew's avatar
Drew committed
18 19
osxxcode:
    stage: test
Drew's avatar
Drew committed
20
    script:
Drew's avatar
Drew committed
21
      - atpm fetch
Drew's avatar
Drew committed
22
      - atbuild coretest-gen
23
      - atbuild coretest --toolchain xcode
Drew's avatar
Drew committed
24 25

    tags:
Drew's avatar
Drew committed
26
      - xcode8
Drew's avatar
Drew committed
27 28
      - openswift
      - atbuild
Drew's avatar
Drew committed
29
      - atpm
Drew's avatar
Drew committed
30 31 32

linux:
    stage: test
Drew's avatar
Drew committed
33
    script:
Drew's avatar
Drew committed
34
      - apt-get update
Drew's avatar
Drew committed
35 36
      - apt-get install atbuild atpm -y
      - atpm fetch
37
      - atbuild coretest
Drew's avatar
Drew committed
38 39 40

    tags:
      - autoscale-linux
Drew's avatar
Drew committed
41
    image: drewcrawford/buildbase:latest
Drew's avatar
Drew committed
42

Drew's avatar
Drew committed
43 44 45 46 47
documentation:
  stage: package
  script:
    - cd docs
    - make html
48
    - make dashdoc
Drew's avatar
Drew committed
49 50 51 52 53
  tags:
    - autoscale-linux

  artifacts:
    paths:
54 55
      - docs/_build/html
      - docs/_build/Caroline.docset
Drew's avatar
Drew committed
56 57 58

  image: drewcrawford/anarchy-sphinx:latest

Drew's avatar
Drew committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72
deploydocs:
  stage: deploy
  image: python:latest
  dependencies:
    - documentation
  script:
  - pip install awscli
  - aws s3 cp docs/_build/html/* s3://$DOC_BUCKET_NAME/ --recursive 

  when: manual
  variables:
    DOC_BUCKET_NAME: "caroline-docs.sealedabstract.com"


Drew's avatar
Drew committed
73
osxcorepackage:
Drew's avatar
Drew committed
74 75
    stage: package
    script:
Drew's avatar
Drew committed
76
      - atpm fetch
77
      - atbuild core-framework --toolchain xcode --configuration release
Drew's avatar
Drew committed
78 79
      
    tags:
Drew's avatar
Drew committed
80
      - xcode8
Drew's avatar
Drew committed
81 82
      - openswift
      - atbuild
Drew's avatar
Drew committed
83
      - package-framework
Drew's avatar
Drew committed
84
      - atpm
Drew's avatar
Drew committed
85 86

    artifacts:
Drew's avatar
Drew committed
87
      paths:
Drew's avatar
Drew committed
88
        - bin/CarolineCore*.tar.xz
Drew's avatar
Drew committed
89

90 91 92
osxtoolpackage:
    stage: package
    script:
Drew's avatar
Drew committed
93
      - atpm fetch
94 95 96
      - atbuild package-statictool --configuration release
      
    tags:
Drew's avatar
Drew committed
97
      - xcode8
98 99 100
      - openswift
      - atbuild
      - package-homebrew
Drew's avatar
Drew committed
101
      - atpm
102 103 104 105 106 107

    artifacts:
      paths:
        - bin/*.tar.xz
        - bin/*.rb

Drew's avatar
Drew committed
108 109 110
linuxtoolpackage:
    stage: package
    script:
Drew's avatar
Drew committed
111
      - apt-get update
Drew's avatar
Drew committed
112 113
      - apt-get install atbuild atpm package-deb -y
      - atpm fetch
Drew's avatar
Drew committed
114 115 116 117 118 119 120 121 122 123
      - atbuild package-statictool --configuration release
      
    tags:
      - autoscale-linux

    artifacts:
      paths:
        - bin/*.tar.xz
        - bin/*.deb

Drew's avatar
Drew committed
124
    image: drewcrawford/buildbase:latest
Drew's avatar
Drew committed
125

Drew's avatar
Drew committed
126
ioscorepackage:
Drew's avatar
Drew committed
127 128
    stage: package
    script:
Drew's avatar
Drew committed
129
      - atpm fetch
130
      - atbuild core-framework --toolchain xcode --platform ios --configuration release
Drew's avatar
Drew committed
131 132
      
    tags:
Drew's avatar
Drew committed
133
      - xcode8
Drew's avatar
Drew committed
134 135
      - openswift
      - atbuild
Drew's avatar
Drew committed
136
      - package-framework
Drew's avatar
Drew committed
137
      - atpm
Drew's avatar
Drew committed
138

Drew's avatar
Drew committed
139
    artifacts:
Drew's avatar
Drew committed
140
      paths:
Drew's avatar
Drew committed
141
        - bin/CarolineCore*.tar.xz