-
Notifications
You must be signed in to change notification settings - Fork 3
/
wercker.yml
73 lines (64 loc) · 1.99 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
box: hashexpression/wercker
no-response-timeout: 10
build:
steps:
- script:
name: build & test
code: |
stack build --test --fast
build-release:
steps:
- script:
name: build & test
code: |
stack build --test --ghc-options -O2 --copy-bins --local-bin-path bins
create-release:
box: ubuntu
steps:
- install-packages:
packages: curl file
- script:
name: Get release version
code: |
export RELEASE_VERSION=$(cat VERSION)
# - script:
# name: Create symphony archive
# code: |
# tar czf symphony-$RELEASE_VERSION-linux.tar.gz --directory=bins symphony
- script:
name: Create lbfgs-b archive
code: |
tar czfh lbfgs-b-$RELEASE_VERSION.tar.gz --directory=solvers/lbfgs-b `ls solvers/lbfgs-b`
- script:
name: Create ipopt archive
code: |
tar czfh ipopt-$RELEASE_VERSION.tar.gz --directory=solvers/ipopt `ls solvers/ipopt`
- wercker/[email protected]:
token: $GITHUB_TOKEN
tag: v$RELEASE_VERSION
title: v$RELEASE_VERSION
# - wercker/[email protected]:
# token: $GITHUB_TOKEN
# file: symphony-$RELEASE_VERSION-linux.tar.gz
- wercker/[email protected]:
token: $GITHUB_TOKEN
file: ipopt-$RELEASE_VERSION.tar.gz
- wercker/[email protected]:
token: $GITHUB_TOKEN
file: lbfgs-b-$RELEASE_VERSION.tar.gz
# create-docker-image:
# box: hashexpression/symphony_env
# steps:
# - script:
# name: Remove unncessary directories & files
# code: |
# rm -rf .stack-work
# rm -rf .git
# - script:
# name: Copy symphony to PATH
# code: |
# cp bins/symphony /usr/bin
# - internal/docker-push:
# username: $DOCKERHUB_USERNAME # Registry username
# password: $DUCKERHUB_PASSWORD # Registry password
# repository: hashexpression/symphony